aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorTingwei Zhang <[email protected]>2020-09-28 10:34:54 -0600
committerGreg Kroah-Hartman <[email protected]>2020-09-28 19:47:40 +0200
commit32b0707a418219b38e17276075962e25e912d4b2 (patch)
treedf2c1adeb20cc12f5d0a793a7c640343e7d155a2 /tools/perf/scripts/python/bin/stackcollapse-record
parentd735d925f9a5029b8aaa5983d63c74f5cb4bfec0 (diff)
coresight: Add try_get_module() in coresight_grab_device()
When coresight device is in an active session, driver module of that device should not be removed. Use try_get_module() in coresight_grab_device() to prevent module to be unloaded. Use get_device()/put_device() to protect device data in the middle of active session. Suggested-by: Suzuki K Poulose <[email protected]> Tested-by: Mike Leach <[email protected]> Reviewed-by: Suzuki K Poulose <[email protected]> Signed-off-by: Tingwei Zhang <[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 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions