aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorWei Liu <[email protected]>2021-09-10 18:57:14 +0000
committerWei Liu <[email protected]>2021-09-11 15:41:00 +0000
commitdfb5c1e12c28e35e4d4e5bc8022b0e9d585b89a7 (patch)
tree684e75f9adcb29d7e2e1a357841ee6babe9373a0 /tools/perf/scripts/python/event_analyzing_sample.py
parent7ad9bb9d0f357dcab5eb9a0f28d1c8983c48434c (diff)
x86/hyperv: remove on-stack cpumask from hv_send_ipi_mask_allbutself
It is not a good practice to allocate a cpumask on stack, given it may consume up to 1 kilobytes of stack space if the kernel is configured to have 8192 cpus. The internal helper functions __send_ipi_mask{,_ex} need to loop over the provided mask anyway, so it is not too difficult to skip `self' there. We can thus do away with the on-stack cpumask in hv_send_ipi_mask_allbutself. Adjust call sites of __send_ipi_mask as needed. Reported-by: Linus Torvalds <[email protected]> Suggested-by: Michael Kelley <[email protected]> Suggested-by: Linus Torvalds <[email protected]> Fixes: 68bb7bfb7985d ("X86/Hyper-V: Enable IPI enlightenments") Signed-off-by: Wei Liu <[email protected]> Reviewed-by: Michael Kelley <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions