]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf script: Make printing flags reliable
authorLeo Yan <leo.yan@arm.com>
Tue, 4 Mar 2025 11:12:29 +0000 (11:12 +0000)
committerNamhyung Kim <namhyung@kernel.org>
Wed, 5 Mar 2025 17:13:19 +0000 (09:13 -0800)
commit2b747a86d84ff6c1c14c50494de74d1dc2aed427
tree63453a43f12fcc7b8d3c38903df0a5279e7e0aca
parentbe9f3e95a93896d23d33c9bcda1c9736121e349d
perf script: Make printing flags reliable

Add a check for the generated string of flags.  Print out the raw number
if the string generation fails.

Use the SAMPLE_FLAGS_STR_ALIGNED_SIZE macro to replace the value '21'.

Reviewed-by: Ian Rogers <irogers@google.com>
Reviewed-by: James Clark <james.clark@linaro.org>
Signed-off-by: Leo Yan <leo.yan@arm.com>
Reviewed-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/20250304111240.3378214-2-leo.yan@arm.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/builtin-script.c
tools/perf/util/trace-event.h