Re: [PATCH v7 07/12] perf/x86: no counter allocation support

2019-07-09 Thread Wei Wang
On 07/09/2019 05:43 PM, Peter Zijlstra wrote: That's almost a year ago; I really can't remember that and you didn't put any of that in your Changelog to help me remember. (also please use: https://lkml.kernel.org/r/$msgid style links) OK, I'll put this link in the cover letter or commit log fo

Re: [PATCH v7 07/12] perf/x86: no counter allocation support

2019-07-09 Thread Peter Zijlstra
On Tue, Jul 09, 2019 at 10:58:46AM +0800, Wei Wang wrote: > On 07/08/2019 10:29 PM, Peter Zijlstra wrote: > > Thanks for the comments. > > > > > > diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h > > > index 0ab99c7..19e6593 100644 > > > --- a/include/linux/perf_event.h > > >

Re: [PATCH v7 07/12] perf/x86: no counter allocation support

2019-07-08 Thread Wei Wang
On 07/08/2019 10:29 PM, Peter Zijlstra wrote: Thanks for the comments. diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index 0ab99c7..19e6593 100644 --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h @@ -528,6 +528,7 @@ typedef void (*perf_overflow_handler_

Re: [PATCH v7 07/12] perf/x86: no counter allocation support

2019-07-08 Thread Peter Zijlstra
On Mon, Jul 08, 2019 at 09:23:14AM +0800, Wei Wang wrote: > In some cases, an event may be created without needing a counter > allocation. For example, an lbr event may be created by the host > only to help save/restore the lbr stack on the vCPU context switching. > > This patch adds a new interfa

[PATCH v7 07/12] perf/x86: no counter allocation support

2019-07-07 Thread Wei Wang
In some cases, an event may be created without needing a counter allocation. For example, an lbr event may be created by the host only to help save/restore the lbr stack on the vCPU context switching. This patch adds a new interface to allow users to create a perf event without the need of counter