perf script: Add -e option to flamegraph script
authorTianyou Li <tianyou.li@intel.com>
Tue, 10 Jun 2025 04:04:23 +0000 (12:04 +0800)
committerNamhyung Kim <namhyung@kernel.org>
Tue, 24 Jun 2025 17:27:51 +0000 (10:27 -0700)
commit9a79c50c2a95887859d5ac133180775b708b850a
tree31075fd8fe517e8af76a6d158e6043662f4acd2f
parentdf9c299371054cb725eef730fd0f1d0fe2ed6bb0
perf script: Add -e option to flamegraph script

When processing the perf data file generated with multiple events,
the flamegraph script will count all the events regardless of
different event names.

This patch tries to add a -e option to specify the event name that
the flamegraph will be generated accordingly. If the -e option omitted,
the behavior remains unchanged.

Signed-off-by: Tianyou Li <tianyou.li@intel.com>
Reviewed-by: Pan Deng <pan.deng@intel.com>
Reviewed-by: Zhiguo Zhou <zhiguo.zhou@intel.com>
Reviewed-by: Wangyang Guo <wangyang.guo@intel.com>
Reviewed-by: Tim Chen <tim.c.chen@linux.intel.com>
Link: https://lore.kernel.org/r/20250610040536.2390060-2-tianyou.li@intel.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/scripts/python/flamegraph.py