lkml.org 
[lkml]   [2020]   [Dec]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCHv3 0/4] perf tools: Allow to enable/disable events via control pipe
Date
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

v3 changes:
- use ' ' instead of '-' in syntax and add command argument
processing [Arnaldo]
- add options to evlist [Arnaldo]
- add man page changes

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 (4):
perf tools: Reformat record's control fd man text
perf tools: Add evlist__disable_evsel/evlist__enable_evsel
perf tools: Allow to enable/disable events via control file
perf tools: Add evlist control command

tools/perf/Documentation/perf-record.txt | 23 +++++++++++----
tools/perf/builtin-record.c | 9 ++----
tools/perf/builtin-stat.c | 3 +-
tools/perf/util/evlist.c | 173 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----
tools/perf/util/evlist.h | 4 +++
tools/perf/util/evsel_fprintf.c | 2 ++
tools/perf/util/python-ext-sources | 1 +
tools/perf/util/setup.py | 2 +-
8 files changed, 197 insertions(+), 20 deletions(-)

\
 
 \ /
  Last update: 2020-12-16 09:42    [W:0.027 / U:0.220 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site