Commit 6875186
perf/core: Use perf_cgroup_info->active to check if cgroup is active
Since we use perf_cgroup_set_timestamp() to start cgroup time and
set active to 1, then use update_cgrp_time_from_cpuctx() to stop
cgroup time and set active to 0.
We can use info->active directly to check if cgroup is active.
Signed-off-by: Chengming Zhou <zhouchengming@bytedance.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20220329154523.86438-3-zhouchengming@bytedance.com1 parent a082771 commit 6875186
1 file changed
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
780 | 780 | | |
781 | 781 | | |
782 | 782 | | |
783 | | - | |
784 | 783 | | |
785 | 784 | | |
786 | 785 | | |
| |||
789 | 788 | | |
790 | 789 | | |
791 | 790 | | |
792 | | - | |
| 791 | + | |
793 | 792 | | |
794 | 793 | | |
795 | 794 | | |
796 | | - | |
797 | | - | |
| 795 | + | |
798 | 796 | | |
799 | | - | |
800 | 797 | | |
801 | 798 | | |
802 | 799 | | |
| |||
0 commit comments