Centos-kernel-stream-9/tools/perf
Michael Petlan b9cc8f783f perf tools: Fix "kernel lock contention analysis" test by not printing warnings in quiet mode
Bugzilla: https://bugzilla.redhat.com/2177180

upstream
========
commit 65319890c32db29fb56b41f84265a2c7029943f4
Author: James Clark <james.clark@arm.com>
Date: Tue Oct 18 10:41:35 2022 +0100

description
===========
Especially when CONFIG_LOCKDEP and other debug configs are enabled,
Perf can print the following warning when running the "kernel lock
contention analysis" test:

  Warning:
  Processed 1378918 events and lost 4 chunks!

  Check IO/CPU overload!

  Warning:
  Processed 4593325 samples and lost 70.00%!

The test already supplies -q to run in quiet mode, so extend quiet mode
to perf_stdio__warning() and also ui__warning() for consistency.

This fixes the following failure due to the extra lines counted:

  perf test "lock cont" -vvv

  82: kernel lock contention analysis test                            :
  --- start ---
  test child forked, pid 3125
  Testing perf lock record and perf lock contention
  [Fail] Recorded result count is not 1: 9
  test child finished with -1
  ---- end ----
  kernel lock contention analysis test: FAILED!

Fixes: ec685de25b6718f8 ("perf test: Add kernel lock contention test")
    Signed-off-by: James Clark <james.clark@arm.com>
    Cc: Adrian Hunter <adrian.hunter@intel.com>
    Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
    Cc: Ian Rogers <irogers@google.com>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: Jiri Olsa <jolsa@kernel.org>
    Cc: Mark Rutland <mark.rutland@arm.com>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Link: https://lore.kernel.org/r/20221018094137.783081-2-james.clark@arm.com
    Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

Signed-off-by: Michael Petlan <mpetlan@redhat.com>
2023-06-01 17:03:00 +02:00
..
Documentation perf scripts python: intel-pt-events.py: Add ability interleave output 2023-06-01 17:02:58 +02:00
arch perf arch x86: Add missing stdlib.h to get free() prototype 2023-06-01 17:02:58 +02:00
bench perf bench: Update use of pthread mutex/cond 2023-06-01 17:02:36 +02:00
dlfilters perf dlfilter dlfilter-show-cycles: Fix types for print format 2022-11-14 20:26:05 +01:00
examples/bpf
include
jvmti
pmu-events perf vendor events riscv: add Sifive U74 JSON file 2023-06-01 17:02:55 +02:00
python
scripts perf scripts python: intel-pt-events.py: Add ability interleave output 2023-06-01 17:02:58 +02:00
tests perf test: Do not set TEST_SKIP for record subtests 2023-06-01 17:03:00 +02:00
trace tools headers uapi: Sync linux/stat.h with the kernel sources 2023-01-12 14:58:24 +01:00
ui perf tools: Fix "kernel lock contention analysis" test by not printing warnings in quiet mode 2023-06-01 17:03:00 +02:00
util perf event: Drop perf_regs.h include, not needed anymore 2023-06-01 17:02:58 +02:00
.gitignore perf test: Add git ignore for tmp and output files of ARM CoreSight tests 2023-06-01 17:02:51 +02:00
Build
CREDITS
MANIFEST
Makefile
Makefile.config perf bpf: Fix build with libbpf 0.7.0 by checking if bpf_program__set_insns() is available 2023-06-01 17:02:54 +02:00
Makefile.perf perf test: Add arm64 asm pureloop test shell script 2023-06-01 17:02:50 +02:00
builtin-annotate.c
builtin-bench.c
builtin-buildid-cache.c
builtin-buildid-list.c
builtin-c2c.c perf mem/c2c: Set PERF_SAMPLE_WEIGHT for LOAD_STORE events 2023-06-01 17:02:52 +02:00
builtin-config.c
builtin-daemon.c perf daemon: Complete list of supported subcommand in help message 2023-06-01 17:02:57 +02:00
builtin-data.c
builtin-diff.c
builtin-evlist.c
builtin-ftrace.c
builtin-help.c
builtin-inject.c perf dso: Hold lock when accessing nsinfo 2023-06-01 17:02:37 +02:00
builtin-kallsyms.c
builtin-kmem.c
builtin-kvm.c
builtin-kwork.c
builtin-list.c perf list: Fix metricgroups title message 2023-06-01 17:02:52 +02:00
builtin-lock.c perf lock: Add -q/--quiet option to suppress header and debug messages 2023-06-01 17:02:44 +02:00
builtin-mem.c perf mem: Fix -C option behavior for perf mem record 2023-06-01 17:02:52 +02:00
builtin-probe.c
builtin-record.c perf record: Fix event fd races 2023-06-01 17:02:54 +02:00
builtin-report.c perf report: Show per-event LOST SAMPLES stat 2023-06-01 17:02:38 +02:00
builtin-sched.c perf sched: Factor out destroy_tasks() 2023-06-01 17:02:40 +02:00
builtin-script.c perf stat: Allocate evsel->stats->aggr properly 2023-06-01 17:02:55 +02:00
builtin-stat.c perf stat: Display percore events properly 2023-06-01 17:02:57 +02:00
builtin-timechart.c perf timechart: Add p_state_end helper 2023-06-01 17:02:40 +02:00
builtin-top.c perf top: Fix error code in cmd_top() 2023-06-01 17:02:42 +02:00
builtin-trace.c perf trace: Fix incorrectly parsed hexadecimal value for flags in filter 2023-06-01 17:02:44 +02:00
builtin-version.c
builtin.h
check-headers.sh tools headers: Update the copy of x86's memcpy_64.S used in 'perf bench' 2023-06-01 17:02:54 +02:00
command-list.txt
design.txt
perf-archive.sh
perf-completion.sh
perf-iostat.sh
perf-read-vdso.c
perf-sys.h
perf.c perf tools: Add same_cmd_with_prefix() helper 2023-06-01 17:02:38 +02:00
perf.h