aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSuzuki K Poulose2018-09-20 13:17:47 -0600
committerGreg Kroah-Hartman2018-09-25 20:09:17 +0200
commit5ecabe4a76e8cdb61fa3e24862d9ca240a1c4ddf (patch)
tree376811345a0bb70fa463145dd845a9cab8db6e56 /tools
parent987d1e8dcd370d96029a3d76a0031b043c4a69ae (diff)
coresight: perf: Fix per cpu path management
We create a coresight trace path for each online CPU when we start the event. We rely on the number of online CPUs and then go on to allocate an array matching the "number of online CPUs" for holding the path and then uses normal CPU id as the index to the array. This is problematic as we could have some offline CPUs causing us to access beyond the actual array size (e.g, on a dual SMP system, if CPU0 is offline, CPU1 could be really accessing beyond the array). The solution is to switch to per-cpu array for holding the path. Cc: Mathieu Poirier <mathieu.poirier@linaro.org> Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com> Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions