aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorYabin Cui <[email protected]>2019-08-29 14:28:38 -0600
committerGreg Kroah-Hartman <[email protected]>2019-09-03 22:01:17 +0200
commit13af88f312fc57becacfcbb1cc77f844281a30ec (patch)
tree18aac4c7b5bb7c26325f1be6c46f0fb241d3bf85 /scripts/gcc-plugins/cyc_complexity_plugin.c
parent89e89b05ef5b58ab33070cc5b59d74ca8cff86fe (diff)
coresight: tmc-etr: Fix updating buffer in not-snapshot mode.
TMC etr always copies all available data to perf aux buffer, which may exceed the available space in perf aux buffer. It isn't suitable for not-snapshot mode, because: 1) It may overwrite previously written data. 2) It may make the perf_event_mmap_page->aux_head report having more or less data than the reality. So change to only copy the latest data fitting the available space in perf aux buffer. 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