aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/env.c
diff options
context:
space:
mode:
authorIan Rogers <[email protected]>2024-11-13 16:55:58 +0000
committerArnaldo Carvalho de Melo <[email protected]>2024-12-10 19:59:09 +0000
commit7504a1c20eb799adcf028a34855c7d9f3dd99545 (patch)
tree076a08feb972ace295d2d51b87224d2ca59a0c9c /tools/perf/util/env.c
parentperf test: Parse 'perf stat' Topdown events for aarch64 (diff)
downloadkernel-7504a1c20eb799adcf028a34855c7d9f3dd99545.tar.gz
kernel-7504a1c20eb799adcf028a34855c7d9f3dd99545.zip
perf jevents: Fix build issue in '*/' in event descriptions
For big string offsets we output comments for what string the offset is for. If the string contains a '*/' as seen in Intel Arrowlake event descriptions, then this causes C parsing issues for the generated pmu-events.c. Catch such '*/' values and escape to avoid this. Signed-off-by: Ian Rogers <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Benjamin Gray <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: John Garry <[email protected]> Cc: Kan Liang <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Sandipan Das <[email protected]> Cc: Xu Yang <[email protected]> Link: https://lore.kernel.org/r/[email protected] [ Used return s.replace('*/', r'\*\/') based on failure followed by request by Ian ] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/env.c')
0 files changed, 0 insertions, 0 deletions