aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorTony Luck <[email protected]>2024-03-07 11:27:04 -0800
committerBorislav Petkov (AMD) <[email protected]>2024-03-26 12:40:42 +0100
commit108c6494bdf1dfeaefc0a506e2f471aa92fafdd6 (patch)
treef3745f26c1dd0565bbee10d5b6714c9a877816f0 /tools/perf/util/trace-event-scripting.c
parent4cece764965020c22cff7665b18a012006359095 (diff)
x86/mce: Dynamically size space for machine check records
Systems with a large number of CPUs may generate a large number of machine check records when things go seriously wrong. But Linux has a fixed-size buffer that can only capture a few dozen errors. Allocate space based on the number of CPUs (with a minimum value based on the historical fixed buffer that could store 80 records). [ bp: Rename local var from tmpp to something more telling: gpool. ] Signed-off-by: Tony Luck <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Reviewed-by: Sohil Mehta <[email protected]> Reviewed-by: Avadhut Naik <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions