Re: [PATCH v10 08/24] coresight: etm: perf: Fix warning caused by etm_setup_aux failure

2020-09-10 Thread Tingwei Zhang
On Fri, Sep 11, 2020 at 06:28:40AM +0800, Mathieu Poirier wrote: > On Fri, Aug 21, 2020 at 11:44:29AM +0800, Tingwei Zhang wrote: > > When coresight_build_path() fails on all the cpus, etm_setup_aux > > calls etm_free_aux() to free allocated event_data. > > WARN_ON(cpumask_empty(mask) will be trigg

Re: [PATCH v10 08/24] coresight: etm: perf: Fix warning caused by etm_setup_aux failure

2020-09-10 Thread Mathieu Poirier
On Fri, Aug 21, 2020 at 11:44:29AM +0800, Tingwei Zhang wrote: > When coresight_build_path() fails on all the cpus, etm_setup_aux > calls etm_free_aux() to free allocated event_data. > WARN_ON(cpumask_empty(mask) will be triggered since cpu mask is empty. > Check event_data->snk_config is not NULL