Re: [PATCH v7 2/4] libperf: Add evsel mmap support

2021-04-14 Thread Arnaldo Carvalho de Melo
Em Tue, Apr 13, 2021 at 02:07:57PM -0500, Rob Herring escreveu: > On Tue, Apr 13, 2021 at 1:39 PM Arnaldo Carvalho de Melo > wrote: > > > --- a/tools/lib/perf/evsel.c > > > +int perf_evsel__mmap(struct perf_evsel *evsel, int pages) > > > +{ > > > + int ret, cpu, thread; > > Where is the count

Re: [PATCH v7 2/4] libperf: Add evsel mmap support

2021-04-13 Thread Rob Herring
On Tue, Apr 13, 2021 at 1:39 PM Arnaldo Carvalho de Melo wrote: > > Em Tue, Apr 13, 2021 at 12:16:04PM -0500, Rob Herring escreveu: > > In order to support usersapce access, an event must be mmapped. While > > there's already mmap support for evlist, the usecase is a bit different > > than the sel

Re: [PATCH v7 2/4] libperf: Add evsel mmap support

2021-04-13 Thread Arnaldo Carvalho de Melo
Em Tue, Apr 13, 2021 at 12:16:04PM -0500, Rob Herring escreveu: > In order to support usersapce access, an event must be mmapped. While > there's already mmap support for evlist, the usecase is a bit different > than the self monitoring with userspace access. So let's add a new > perf_evsel__mmap()

[PATCH v7 2/4] libperf: Add evsel mmap support

2021-04-13 Thread Rob Herring
In order to support usersapce access, an event must be mmapped. While there's already mmap support for evlist, the usecase is a bit different than the self monitoring with userspace access. So let's add a new perf_evsel__mmap() function to mmap an evsel. This allows implementing userspace access as