Commit f178ffd
perf trace: Ignore thread hashing in summary
Commit 91e467b ("perf machine: Use hashtable for machine
threads") made the iteration of thread tids unordered. The perf trace
--summary output sorts and prints each hash bucket, rather than all
threads globally. Change this behavior by turn all threads into a
list, sort the list by number of trace events then by tids, finally
print the list. This also allows the rbtree in threads to be not
accessed outside of machine.
Signed-off-by: Ian Rogers <irogers@google.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Yang Jihong <yangjihong1@huawei.com>
Cc: Oliver Upton <oliver.upton@linux.dev>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20240301053646.1449657-3-irogers@google.com1 parent 2f1e20f commit f178ffd
2 files changed
Lines changed: 23 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
| |||
4312 | 4313 | | |
4313 | 4314 | | |
4314 | 4315 | | |
4315 | | - | |
4316 | | - | |
4317 | | - | |
4318 | | - | |
4319 | | - | |
| 4316 | + | |
| 4317 | + | |
| 4318 | + | |
4320 | 4319 | | |
4321 | | - | |
| 4320 | + | |
| 4321 | + | |
| 4322 | + | |
| 4323 | + | |
| 4324 | + | |
| 4325 | + | |
| 4326 | + | |
| 4327 | + | |
| 4328 | + | |
| 4329 | + | |
| 4330 | + | |
| 4331 | + | |
4322 | 4332 | | |
4323 | 4333 | | |
4324 | 4334 | | |
4325 | 4335 | | |
4326 | 4336 | | |
4327 | | - | |
4328 | | - | |
4329 | | - | |
4330 | | - | |
4331 | | - | |
| 4337 | + | |
4332 | 4338 | | |
4333 | | - | |
4334 | | - | |
4335 | | - | |
4336 | | - | |
| 4339 | + | |
| 4340 | + | |
4337 | 4341 | | |
4338 | | - | |
4339 | | - | |
| 4342 | + | |
4340 | 4343 | | |
4341 | | - | |
| 4344 | + | |
| 4345 | + | |
4342 | 4346 | | |
| 4347 | + | |
4343 | 4348 | | |
4344 | 4349 | | |
4345 | 4350 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | 146 | | |
0 commit comments