Re: [PATCH] perf report/annotate: Add option to specify a CPU range

Anton Blanchard
2011-06-30T03:15:16Z

Hi David,

> > Add an option to perf report and perf annotate to specify which CPUs
>
> What about perf-script?

Good point, I added the option to perf script.

> > + if (cpu_list && !test_bit(sample->cpu, cpu_bitmap))
> > + return 0;
> > +
>
> Need to check that the SAMPLE_CPU attribute is set for the event for
> which the sample is generated; see builtin-script.c,
> perf_evsel__check_attr().

Added.

> This option should be added to the Documentation file,
> Documentation/perf-report.txt

Added. Updated patch on the way.

Thanks,
Anton