aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorYabin Cui <[email protected]>2019-08-29 14:28:39 -0600
committerGreg Kroah-Hartman <[email protected]>2019-09-03 22:01:17 +0200
commitbbedcb91cc3bf252e6031e199ab3d1f07107f7c5 (patch)
tree837d949bea4c25cf3d58d342ff6b4ddb5126e31f /scripts/gcc-plugins/cyc_complexity_plugin.c
parent13af88f312fc57becacfcbb1cc77f844281a30ec (diff)
coresight: tmc-etr: Fix perf_data check
When tracing etm data of multiple threads on multiple cpus through perf interface, each cpu has a unique etr_perf_buffer while sharing the same etr device. There is no guarantee that the last cpu starts etm tracing also stops last. This makes perf_data check fail. Fix it by checking etr_buf instead of etr_perf_buffer. Also move the code setting and clearing perf_buf to more suitable places. Fixes: 3147da92a8a8 ("coresight: tmc-etr: Allocate and free ETR memory buffers for CPU-wide scenarios") Signed-off-by: Yabin Cui <[email protected]> Signed-off-by: Mathieu Poirier <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions