linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCHv3 0/4] perf tools: Allow to enable/disable events via control pipe
@ 2020-12-16  8:39 Jiri Olsa
  2020-12-16  8:39 ` [PATCH 1/4] perf tools: Reformat record's control fd man text Jiri Olsa
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Jiri Olsa @ 2020-12-16  8:39 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo
  Cc: lkml, Peter Zijlstra, Ingo Molnar, Mark Rutland, Namhyung Kim,
	Alexander Shishkin, Michael Petlan, Ian Rogers, Stephane Eranian,
	Alexei Budankov

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(-)


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-12-16  8:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-16  8:39 [PATCHv3 0/4] perf tools: Allow to enable/disable events via control pipe Jiri Olsa
2020-12-16  8:39 ` [PATCH 1/4] perf tools: Reformat record's control fd man text Jiri Olsa
2020-12-16  8:39 ` [PATCH 2/4] perf tools: Add evlist__disable_evsel/evlist__enable_evsel Jiri Olsa
2020-12-16  8:39 ` [PATCH 3/4] perf tools: Allow to enable/disable events via control file Jiri Olsa
2020-12-16  8:39 ` [PATCH 4/4] perf tools: Add evlist control command Jiri Olsa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).