Re: [PATCH 3/4] coresight: etm4x: Add support to exclude kernel mode tracing

2021-02-24 Thread Sai Prakash Ranjan
Hi, Thanks for taking a look, comments inline. On 2021-02-23 01:44, Doug Anderson wrote: Hi, On Fri, Jan 29, 2021 at 11:08 AM Sai Prakash Ranjan wrote: @@ -1202,6 +1207,13 @@ void etm4_config_trace_mode(struct etmv4_config *config) /* excluding kernel AND user space doesn't make

Re: [PATCH 3/4] coresight: etm4x: Add support to exclude kernel mode tracing

2021-02-22 Thread Doug Anderson
Hi, On Fri, Jan 29, 2021 at 11:08 AM Sai Prakash Ranjan wrote: > > @@ -1202,6 +1207,13 @@ void etm4_config_trace_mode(struct etmv4_config > *config) > /* excluding kernel AND user space doesn't make sense */ > WARN_ON_ONCE(mode == (ETM_MODE_EXCL_KERN | ETM_MODE_EXCL_USER)); > >

[PATCH 3/4] coresight: etm4x: Add support to exclude kernel mode tracing

2021-01-29 Thread Sai Prakash Ranjan
On production systems with ETMs enabled, it is preferred to exclude kernel mode(NS EL1) tracing for security concerns and support only userspace(NS EL0) tracing. Perf subsystem interface for ETMs use the newly introduced kernel config CONFIG_EXCLUDE_KERNEL_HW_ITRACE to exclude kernel mode tracing,