Re: [PATCH v1 1/7] coresight: etm-perf: Add support for PID tracing for kernel at EL2

2021-01-18 Thread Suzuki K Poulose
Hi Mathieu On 1/15/21 10:30 PM, Mathieu Poirier wrote: Hey guys, On Sat, Jan 09, 2021 at 03:44:29PM +0800, Leo Yan wrote: From: Suzuki K Poulose When the kernel is running at EL2, the PID is stored in CONTEXTIDR_EL2. So, tracing CONTEXTIDR_EL1 doesn't give us the pid of the process. Thus we

Re: [PATCH v1 1/7] coresight: etm-perf: Add support for PID tracing for kernel at EL2

2021-01-15 Thread Mathieu Poirier
Hey guys, On Sat, Jan 09, 2021 at 03:44:29PM +0800, Leo Yan wrote: > From: Suzuki K Poulose > > When the kernel is running at EL2, the PID is stored in CONTEXTIDR_EL2. > So, tracing CONTEXTIDR_EL1 doesn't give us the pid of the process. > Thus we should trace the VMID with VMIDOPT set to trace >

Re: [PATCH v1 1/7] coresight: etm-perf: Add support for PID tracing for kernel at EL2

2021-01-12 Thread Mike Leach
Hi Leo, On Tue, 12 Jan 2021 at 14:15, Leo Yan wrote: > > Hi Mike, > > On Tue, Jan 12, 2021 at 11:23:03AM +, Mike Leach wrote: > > Hi Leo, > > > > On Tue, 12 Jan 2021 at 08:58, Leo Yan wrote: > > > > > > Hi Mike, > > > > > > On Mon, Jan 11, 2021 at 04:22:39PM +, Mike Leach wrote: > > > >

Re: [PATCH v1 1/7] coresight: etm-perf: Add support for PID tracing for kernel at EL2

2021-01-12 Thread Leo Yan
Hi Mike, On Tue, Jan 12, 2021 at 11:23:03AM +, Mike Leach wrote: > Hi Leo, > > On Tue, 12 Jan 2021 at 08:58, Leo Yan wrote: > > > > Hi Mike, > > > > On Mon, Jan 11, 2021 at 04:22:39PM +, Mike Leach wrote: > > > > [...] > > > > > > diff --git a/include/linux/coresight-pmu.h > > > > b/inc

Re: [PATCH v1 1/7] coresight: etm-perf: Add support for PID tracing for kernel at EL2

2021-01-12 Thread Mike Leach
Hi Leo, On Tue, 12 Jan 2021 at 08:58, Leo Yan wrote: > > Hi Mike, > > On Mon, Jan 11, 2021 at 04:22:39PM +, Mike Leach wrote: > > [...] > > > > diff --git a/include/linux/coresight-pmu.h b/include/linux/coresight-pmu.h > > > index b0e35eec6499..927c6285ce5d 100644 > > > --- a/include/linux/co

Re: [PATCH v1 1/7] coresight: etm-perf: Add support for PID tracing for kernel at EL2

2021-01-12 Thread Suzuki K Poulose
On 1/12/21 8:58 AM, Leo Yan wrote: Hi Mike, On Mon, Jan 11, 2021 at 04:22:39PM +, Mike Leach wrote: [...] diff --git a/include/linux/coresight-pmu.h b/include/linux/coresight-pmu.h index b0e35eec6499..927c6285ce5d 100644 --- a/include/linux/coresight-pmu.h +++ b/include/linux/coresight-pm

Re: [PATCH v1 1/7] coresight: etm-perf: Add support for PID tracing for kernel at EL2

2021-01-12 Thread Leo Yan
Hi Mike, On Mon, Jan 11, 2021 at 04:22:39PM +, Mike Leach wrote: [...] > > diff --git a/include/linux/coresight-pmu.h b/include/linux/coresight-pmu.h > > index b0e35eec6499..927c6285ce5d 100644 > > --- a/include/linux/coresight-pmu.h > > +++ b/include/linux/coresight-pmu.h > > @@ -11,16 +11,

Re: [PATCH v1 1/7] coresight: etm-perf: Add support for PID tracing for kernel at EL2

2021-01-11 Thread Leo Yan
On Mon, Jan 11, 2021 at 04:22:39PM +, Mike Leach wrote: > Hi Leo, > > On Sat, 9 Jan 2021 at 07:44, Leo Yan wrote: > > > > From: Suzuki K Poulose > > > > When the kernel is running at EL2, the PID is stored in CONTEXTIDR_EL2. > > So, tracing CONTEXTIDR_EL1 doesn't give us the pid of the proce

Re: [PATCH v1 1/7] coresight: etm-perf: Add support for PID tracing for kernel at EL2

2021-01-11 Thread Mike Leach
Hi Leo, On Sat, 9 Jan 2021 at 07:44, Leo Yan wrote: > > From: Suzuki K Poulose > > When the kernel is running at EL2, the PID is stored in CONTEXTIDR_EL2. > So, tracing CONTEXTIDR_EL1 doesn't give us the pid of the process. > Thus we should trace the VMID with VMIDOPT set to trace > CONTEXTIDR_E

[PATCH v1 1/7] coresight: etm-perf: Add support for PID tracing for kernel at EL2

2021-01-08 Thread Leo Yan
From: Suzuki K Poulose When the kernel is running at EL2, the PID is stored in CONTEXTIDR_EL2. So, tracing CONTEXTIDR_EL1 doesn't give us the pid of the process. Thus we should trace the VMID with VMIDOPT set to trace CONTEXTIDR_EL2 instead of CONTEXTIDR_EL1. Given that we have an existing config