Ian Rogers f178ffdf7e perf trace: Ignore thread hashing in summary
Commit 91e467bc568f ("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.com
2024-03-03 22:51:18 -08:00
..
2022-01-12 17:01:38 -08:00
2023-10-25 13:38:33 -07:00
2023-09-12 17:50:36 -03:00
2022-06-28 12:05:25 -03:00
2024-02-12 12:35:41 -08:00
2023-03-14 08:29:46 -03:00
2022-10-04 08:55:21 -03:00
2023-11-27 10:21:27 -03:00
2021-04-29 10:30:58 -03:00
2021-08-11 09:35:44 -03:00
2023-01-23 10:00:47 -03:00
2023-12-23 22:39:42 -03:00
2021-02-03 13:10:44 -03:00
2023-10-12 10:01:56 -07:00
2024-03-03 22:50:55 -08:00
2024-03-03 22:50:55 -08:00
2024-02-12 12:35:41 -08:00
2023-04-06 21:40:28 -03:00
2023-09-12 17:47:00 -03:00
2023-11-09 13:47:50 -03:00
2023-12-23 22:39:42 -03:00
2020-10-14 13:34:26 -03:00
2023-10-12 10:01:56 -07:00
2024-02-12 12:35:41 -08:00
2022-06-23 11:54:22 -03:00
2024-02-12 12:35:41 -08:00
2023-04-10 19:20:53 -03:00