Messages in this thread | | | From | Jiri Olsa <> | Subject | [PATCHv2 0/3] perf tools: Allow to enable/disable events via control pipe | Date | Thu, 10 Dec 2020 21:43:27 +0100 |
| |
hi, adding support to enable/disable specific events via control file via following commands:
# echo enable-sched:sched_process_fork > control # echo disabled-sched:sched_process_fork > control
v2 changes: - added acks - change list to evlist [Arnaldo] - add evlist-verbose command [Arnaldo] - add '' to enale-/disable- error message
The code is available in here: git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git perf/control
thanks, jirka
--- Jiri Olsa (3): perf tools: Add evlist__disable_evsel/evlist__enable_evsel perf tools: Allow to enable/disable events via control file perf tools: Add evlist/evlist-verbose control commands
tools/perf/builtin-record.c | 4 ++++ tools/perf/builtin-stat.c | 4 ++++ tools/perf/util/evlist.c | 114 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---- tools/perf/util/evlist.h | 10 ++++++++++ 4 files changed, 128 insertions(+), 4 deletions(-)
| |