Re: [PATCH 1/4] perf tools: Allow to enable/disable events via control file

2021-01-19 Thread Arnaldo Carvalho de Melo
Em Sun, Dec 27, 2020 at 12:20:35AM +0100, Jiri Olsa escreveu: > Adding new control events to enable/disable specific event. > The interface string for control file are: > > 'enable ' > 'disable ' > > when received the command, perf will scan the current evlist > for and if found it's

Re: [PATCH 1/4] perf tools: Allow to enable/disable events via control file

2021-01-19 Thread Jiri Olsa
On Tue, Jan 19, 2021 at 11:16:37AM -0300, Arnaldo Carvalho de Melo wrote: SNIP > > terminal 2: > > bash 33349 [034] 149632.228023: sched:sched_process_fork: comm=bash > > pid=33349 child_comm=bash child_pid=34059 > > bash 33349 [034] 149632.228050: sched:sched_wakeup_new: bash:34059

[PATCH 1/4] perf tools: Allow to enable/disable events via control file

2020-12-26 Thread Jiri Olsa
Adding new control events to enable/disable specific event. The interface string for control file are: 'enable ' 'disable ' when received the command, perf will scan the current evlist for and if found it's enabled/disabled. Example session: terminal 1: # mkfifo control ack