diff options
author | Jin Yao <[email protected]> | 2017-12-05 22:03:07 +0800 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2017-12-27 12:15:45 -0300 |
commit | 56739444d861daa050624d40c7adff32c73e9980 (patch) | |
tree | 61b6f28bc1b5ab58d5416b9fa6e186e3020f4bc8 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 6a1e2c5c267358455a13bd8d59547430370c845a (diff) |
perf stat: Allocate shadow stats buffer for threads
After perf_evlist__create_maps() being executed, we can get all threads
from /proc. And via thread_map__nr(), we can also get the number of
threads.
With the number of threads, the patch allocates a buffer which will
record the shadow stats for these threads.
The buffer pointer is saved in stat_config.
Signed-off-by: Jin Yao <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Kan Liang <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions