aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorTony Luck <[email protected]>2024-06-28 14:56:10 -0700
committerBorislav Petkov (AMD) <[email protected]>2024-07-02 19:49:54 +0200
commit587edd7069b9e7dc7993d2df9371e7c37a4d2133 (patch)
tree540443a8ba991711b67d5d6981e098cc7a8984e4 /tools/perf/util/scripting-engines/trace-event-python.c
parentfb1f51f677585f1b1ba17d2390963bbebe7a8cfa (diff)
x86/resctrl: Initialize on-stack struct rmid_read instances
New semantics rely on some struct rmid_read members having NULL values to distinguish between the SNC and non-SNC scenarios. resctrl can thus no longer rely on this struct not being initialized properly. Initialize all on-stack declarations of struct rmid_read: rdtgroup_mondata_show() mbm_update() mkdir_mondata_subdir() to ensure that garbage values from the stack are not passed down to other functions. [ bp: Massage commit message. ] Signed-off-by: Tony Luck <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Reviewed-by: Reinette Chatre <[email protected]> Tested-by: Babu Moger <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions