mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
perf/core: Add per perf_cpu_context min_heap storage
The storage required for visit_groups_merge's min heap needs to vary in order to support more iterators, such as when multiple nested cgroups' events are being visited. This change allows for 2 iterators and doesn't support growth. Based-on-work-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: Ian Rogers <irogers@google.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lkml.kernel.org/r/20200214075133.181299-5-irogers@google.com
This commit is contained in:
parent
6eef8a7116
commit
836196beb3
2 changed files with 39 additions and 11 deletions
|
@ -862,6 +862,13 @@ struct perf_cpu_context {
|
|||
int sched_cb_usage;
|
||||
|
||||
int online;
|
||||
/*
|
||||
* Per-CPU storage for iterators used in visit_groups_merge. The default
|
||||
* storage is of size 2 to hold the CPU and any CPU event iterators.
|
||||
*/
|
||||
int heap_size;
|
||||
struct perf_event **heap;
|
||||
struct perf_event *heap_default[2];
|
||||
};
|
||||
|
||||
struct perf_output_handle {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue