Re: [PATCH] coresight: Serialize enabling/disabling a link device.

2019-08-09 Thread Yabin Cui
>You may also want to protect the refcount checks below with the same lock, just >to be consistent. Good suggestion! I didn't protect it because I found other places using refcnt. But it turns out they are not link devices. I have uploaded patch v2.

Re: [PATCH] coresight: Serialize enabling/disabling a link device.

2019-08-09 Thread Suzuki K Poulose
Hi,- On 08/08/2019 20:17, Yabin Cui wrote: When tracing etm data of multiple threads on multiple cpus through perf interface, some link devices are shared between paths of different cpus. It creates race conditions when different cpus wants to enable/disable the same link device at the same

[PATCH] coresight: Serialize enabling/disabling a link device.

2019-08-08 Thread Yabin Cui
When tracing etm data of multiple threads on multiple cpus through perf interface, some link devices are shared between paths of different cpus. It creates race conditions when different cpus wants to enable/disable the same link device at the same time. Example 1: Two cpus want to enable