aboutsummaryrefslogtreecommitdiff
path: root/tools/lib/api/fd/array.c
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@kernel.org>2022-01-26 16:00:50 -0800
committerArnaldo Carvalho de Melo <acme@redhat.com>2022-02-10 15:43:56 -0300
commitea0ddc27e2608a4ac3075e5d3f6b6be1215f30e9 (patch)
tree65a99d332c8609bb44f6f3a196713beccb01f1b8 /tools/lib/api/fd/array.c
parent0d435bf8c3f4d01d9547e87237977191573c6f5a (diff)
perf lock: Carefully combine lock stats for discarded entries
Stats from discarded entries should be omitted. But a lock class may have both good and bad entries. If the first entry was bad, we can zero-fill the stats and only add good stats if any. The entry can remove the discard state if it finds a good entry later. Signed-off-by: Namhyung Kim <namhyung@kernel.org> Acked-by: Jiri Olsa <jolsa@redhat.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Ian Rogers <irogers@google.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: https://lore.kernel.org/r/20220127000050.3011493-7-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/lib/api/fd/array.c')
0 files changed, 0 insertions, 0 deletions