Em Mon, May 23, 2016 at 07:13:38AM +, Wang Nan escreveu:
> +++ b/tools/perf/util/evlist.c
> @@ -679,6 +679,38 @@ static struct perf_evsel
> *perf_evlist__event2evsel(struct perf_evlist *evlist,
> return NULL;
> }
>
> +static int perf_evlist__set_paused(struct perf_evlist *evlist, bool
perf_evlist__toggle_{pause,resume}() are introduced to pause/resume
events in an evlist. Utilize PERF_EVENT_IOC_PAUSE_OUTPUT ioctl.
Following commits use them to ensure overwrite ring buffer is paused
before reading.
Signed-off-by: Wang Nan
Signed-off-by: He Kuang
Cc: Arnaldo Carvalho de Melo
C
2 matches
Mail list logo