aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAlexander Shishkin <[email protected]>2016-03-10 18:21:14 +0200
committerAlexander Shishkin <[email protected]>2016-04-08 16:11:59 +0300
commita45ff6ed742cdfdb3cdebee83d19ab1c00d91fcc (patch)
treef87e814284007aab0e97cc61d9c9209532b8bc50 /tools/perf/scripts/python
parentf18a9531f6da9aba2920a3a5f166dba5a20592a0 (diff)
intel_th: msu: Serialize enabling/disabling
In order to guarantee that readers don't race with trace enabling, both should happen under the same mutex. Having two mutexes seems like an overkill, considering that because of the above, they'll have to be acquired together, around trace enabling and char device opening. This patch makes both buffer accesses and readers serialize on msc::buf_mutex and makes sure that 'enabled' flag accesses are also serialized on it. Signed-off-by: Alexander Shishkin <[email protected]> Reviewed-by: Laurent Fert <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions