linux/tools/perf/util
Ian Rogers c7551a2e33 perf list: Support for printing metric thresholds
Add to json output by default. For regular output, only enable with
the --detail flag.

Signed-off-by: Ian Rogers <irogers@google.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Alexandre Torgue <alexandre.torgue@foss.st.com>
Cc: Andrii Nakryiko <andrii@kernel.org>
Cc: Athira Rajeev <atrajeev@linux.vnet.ibm.com>
Cc: Caleb Biggers <caleb.biggers@intel.com>
Cc: Eduard Zingerman <eddyz87@gmail.com>
Cc: Florian Fischer <florian.fischer@muhq.space>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: James Clark <james.clark@arm.com>
Cc: Jing Zhang <renyu.zj@linux.alibaba.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: John Garry <john.g.garry@oracle.com>
Cc: Kajol Jain <kjain@linux.ibm.com>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Leo Yan <leo.yan@linaro.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Perry Taylor <perry.taylor@intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ravi Bangoria <ravi.bangoria@amd.com>
Cc: Sandipan Das <sandipan.das@amd.com>
Cc: Sean Christopherson <seanjc@google.com>
Cc: Stephane Eranian <eranian@google.com>
Cc: Suzuki Poulouse <suzuki.poulose@arm.com>
Cc: Xing Zhengjun <zhengjun.xing@linux.intel.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-stm32@st-md-mailman.stormreply.com
Link: https://lore.kernel.org/r/20230219092848.639226-36-irogers@google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2023-02-19 08:06:49 -03:00
..
arm-spe-decoder perf arm-spe: Add raw decoding for SPEv1.2 previous branch address 2023-02-03 17:12:25 -03:00
bpf_skel perf test: Fix offcpu test prev_state check 2023-02-19 07:58:23 -03:00
c++
cs-etm-decoder perf cs-etm: Update decoder code for OpenCSD version 1.4 2023-01-30 14:54:13 -03:00
hisi-ptt-decoder
include
intel-pt-decoder
libunwind
scripting-engines perf trace: Reduce #ifdefs for TEP_FIELD_IS_RELATIVE 2023-01-19 13:26:28 -03:00
affinity.c perf tools: Use dedicated non-atomic clear/set bit helpers 2022-12-05 09:29:06 -03:00
affinity.h
amd-sample-raw.c
annotate.c
annotate.h
archinsn.h
arm-spe.c
arm-spe.h
arm64-frame-pointer-unwind-support.c
arm64-frame-pointer-unwind-support.h
auxtrace.c perf intel-pt: Synthesize cycle events 2023-02-17 11:02:44 -03:00
auxtrace.h perf intel-pt: Synthesize cycle events 2023-02-17 11:02:44 -03:00
block-info.c
block-info.h
block-range.c
block-range.h
bpf-event.c
bpf-event.h
bpf-loader.c Merge remote-tracking branch 'torvalds/master' into perf/core 2022-12-16 09:53:53 -03:00
bpf-loader.h
bpf-prologue.c
bpf-prologue.h
bpf-utils.c
bpf-utils.h
bpf_counter.c perf thread_map: Reduce exposure of libperf internal API 2022-11-16 12:17:15 -03:00
bpf_counter.h perf build: Properly guard libbpf includes 2023-01-10 10:51:39 -03:00
bpf_counter_cgroup.c perf stat: Fix handling of unsupported cgroup events when using BPF counters 2023-01-04 10:52:07 -03:00
bpf_ftrace.c
bpf_kwork.c
bpf_lock_contention.c perf lock contention: Add -o/--lock-owner option 2023-02-08 10:33:32 -03:00
bpf_map.c
bpf_map.h
bpf_off_cpu.c perf off_cpu: Fix a typo in BTF tracepoint name, it should be 'btf_trace_sched_switch' 2022-12-14 11:24:31 -03:00
branch.c perf script: Show branch speculation info 2023-02-02 17:18:31 -03:00
branch.h perf script: Show branch speculation info 2023-02-02 17:18:31 -03:00
Build perf lock contention: Use lock_stat_find{,new} 2023-02-03 17:12:26 -03:00
build-id.c perf buildid-cache: Fix the file mode with copyfile() while adding file to build-id cache 2023-01-18 10:39:16 -03:00
build-id.h
cache.h
cacheline.c
cacheline.h perf c2c: Add report option to show false sharing in adjacent cachelines 2023-02-16 09:33:45 -03:00
call-path.c
call-path.h
callchain.c
callchain.h
cap.c
cap.h
cgroup.c perf stat: Remove evsel metric_name/expr 2023-02-03 13:54:21 -03:00
cgroup.h
clockid.c
clockid.h
cloexec.c
cloexec.h
color.c
color.h
color_config.c
comm.c
comm.h
compress.h
config.c
config.h
copyfile.c
copyfile.h
counts.c
counts.h
cpu-set-sched.h
cpumap.c perf cpumap: Tidy libperf includes 2022-11-16 16:00:45 -03:00
cpumap.h perf cpumap: Tidy libperf includes 2022-11-16 16:00:45 -03:00
cputopo.c perf expr: Make the online topology accessible globally 2023-02-19 08:03:12 -03:00
cputopo.h perf expr: Make the online topology accessible globally 2023-02-19 08:03:12 -03:00
cs-etm-base.c perf cs_etm: Record ts_source in AUXTRACE_INFO for ETMv4 and ETE 2023-01-22 18:17:44 -03:00
cs-etm.c perf cs_etm: Set the time field in the synthetic samples 2023-01-22 18:17:45 -03:00
cs-etm.h perf cs_etm: Set the time field in the synthetic samples 2023-01-22 18:17:45 -03:00
data-convert-bt.c perf trace: Reduce #ifdefs for TEP_FIELD_IS_RELATIVE 2023-01-19 13:26:28 -03:00
data-convert-json.c perf build: Use libtraceevent from the system 2022-12-14 11:16:12 -03:00
data-convert.h
data.c perf tools: Fix resources leak in perf_data__open_dir() 2023-01-02 11:45:43 -03:00
data.h
db-export.c
db-export.h
debug.c perf debug: Increase libtraceevent logging when verbose 2023-01-19 13:26:49 -03:00
debug.h
demangle-java.c
demangle-java.h
demangle-ocaml.c
demangle-ocaml.h
demangle-rust.c
demangle-rust.h
dlfilter.c perf tools: Fix usage of the verbose variable 2022-12-20 15:16:33 -03:00
dlfilter.h
dso.c
dso.h
dsos.c
dsos.h
dump-insn.c
dump-insn.h
dwarf-aux.c perf probe: Fix to get the DW_AT_decl_file and DW_AT_call_file as unsinged data 2022-11-08 22:21:20 -03:00
dwarf-aux.h
dwarf-regs.c
env.c
env.h
event.c
event.h
events_stats.h
evlist-hybrid.c
evlist-hybrid.h
evlist.c perf evlist: Remove group option. 2022-12-14 15:28:18 -03:00
evlist.h perf evlist: Remove group option. 2022-12-14 15:28:18 -03:00
evsel.c perf stat: Remove evsel metric_name/expr 2023-02-03 13:54:21 -03:00
evsel.h perf stat: Remove evsel metric_name/expr 2023-02-03 13:54:21 -03:00
evsel_config.h
evsel_fprintf.c perf build: Use libtraceevent from the system 2022-12-14 11:16:12 -03:00
evsel_fprintf.h
evswitch.c
evswitch.h perf: Various spelling fixes 2023-01-23 10:00:47 -03:00
expr.c perf expr: Make the online topology accessible globally 2023-02-19 08:03:12 -03:00
expr.h perf pmu-events: Fix testing with JEVENTS_ARCH=all 2023-02-03 13:54:21 -03:00
expr.l perf pmu-events: Fix testing with JEVENTS_ARCH=all 2023-02-03 13:54:21 -03:00
expr.y
find-map.c
fncache.c
fncache.h
ftrace.h
genelf.c
genelf.h
genelf_debug.c
generate-cmdlist.sh perf help: Use HAVE_LIBTRACEEVENT to filter out unsupported commands 2023-01-02 11:51:53 -03:00
get_current_dir_name.c
get_current_dir_name.h
hashmap.c libbpf: Hashmap interface update to allow both long and void* keys/values 2022-11-09 20:45:14 -08:00
hashmap.h libbpf: Hashmap.h update to fix build issues using LLVM14 2022-11-11 10:24:23 -08:00
header.c perf build: Use libtraceevent from the system 2022-12-14 11:16:12 -03:00
header.h perf build: Use libtraceevent from the system 2022-12-14 11:16:12 -03:00
help-unknown-cmd.c
help-unknown-cmd.h
hisi-ptt.c
hisi-ptt.h
hist.c perf hist: Add perf_hpp_fmt->init() callback 2022-12-21 14:52:40 -03:00
hist.h perf hist: Add perf_hpp_fmt->init() callback 2022-12-21 14:52:40 -03:00
intel-bts.c
intel-bts.h
intel-pt.c perf intel-pt: Synthesize cycle events 2023-02-17 11:02:44 -03:00
intel-pt.h
intlist.c
intlist.h
iostat.c perf stat: Pass through 'struct outstate' 2022-11-24 09:40:37 -03:00
iostat.h perf stat: Pass through 'struct outstate' 2022-11-24 09:40:37 -03:00
jit.h
jitdump.c
jitdump.h
kvm-stat.h
kwork.h
levenshtein.c
levenshtein.h
llvm-utils.c perf llvm: Fix inadvertent file creation 2023-01-19 13:23:26 -03:00
llvm-utils.h
lock-contention.h perf lock contention: Add -o/--lock-owner option 2023-02-08 10:33:32 -03:00
lzma.c
machine.c machine: Adopt is_lock_function() from builtin-lock.c 2022-12-14 11:16:12 -03:00
machine.h machine: Adopt is_lock_function() from builtin-lock.c 2022-12-14 11:16:12 -03:00
map.c
map.h
map_symbol.h
maps.c
maps.h
mem-events.c
mem-events.h
mem2node.c
mem2node.h
memswap.c
memswap.h
metricgroup.c perf list: Support for printing metric thresholds 2023-02-19 08:06:49 -03:00
metricgroup.h perf pmu-events: Introduce pmu_metrics_table 2023-02-03 13:54:21 -03:00
mmap.c perf tools: Use dedicated non-atomic clear/set bit helpers 2022-12-05 09:29:06 -03:00
mmap.h
mutex.c
mutex.h
namespaces.c
namespaces.h
off_cpu.h
ordered-events.c
ordered-events.h
parse-branch-options.c perf record: Add remaining branch filters: "no_cycles", "no_flags" & "hw_index" 2022-12-14 11:16:12 -03:00
parse-branch-options.h
parse-events-hybrid.c
parse-events-hybrid.h
parse-events.c perf pmu-events: Remove now unused event and metric variables 2023-02-03 13:54:21 -03:00
parse-events.h perf build: Use libtraceevent from the system 2022-12-14 11:16:12 -03:00
parse-events.l
parse-events.y
parse-regs-options.c
parse-regs-options.h
parse-sublevel-options.c
parse-sublevel-options.h
path.c
path.h
perf-hooks-list.h
perf-hooks.c
perf-hooks.h
PERF-VERSION-GEN perf tools: Don't include signature in version strings 2023-01-02 12:34:06 -03:00
perf_api_probe.c
perf_api_probe.h
perf_event_attr_fprintf.c
perf_regs.c
perf_regs.h
pfm.c perf tools: Fix perf tool build error in util/pfm.c 2023-02-08 11:07:47 -03:00
pfm.h perf list: List callback support for libpfm 2022-11-24 10:04:52 -03:00
pmu-hybrid.c perf pmu: Use perf_pmu__open_file() and perf_pmu__scan_file() 2023-01-22 18:17:32 -03:00
pmu-hybrid.h
pmu.c perf pmu-events: Change perpkg to be a bool 2023-02-19 08:02:52 -03:00
pmu.h perf pmu-events: Introduce pmu_metrics_table 2023-02-03 13:54:21 -03:00
pmu.l
pmu.y
pmus.c perf tool: Move pmus list variable to a new file 2022-12-14 11:16:12 -03:00
pmus.h perf tool: Move pmus list variable to a new file 2022-12-14 11:16:12 -03:00
print-events.c perf pmu-events: Remove now unused event and metric variables 2023-02-03 13:54:21 -03:00
print-events.h perf list: Support for printing metric thresholds 2023-02-19 08:06:49 -03:00
print_binary.c
print_binary.h
probe-event.c perf probe: Update the exit error codes in function try_to_find_probe_trace_event 2023-02-06 15:00:05 -03:00
probe-event.h
probe-file.c
probe-file.h
probe-finder.c
probe-finder.h
pstack.c
pstack.h
python-ext-sources
python.c perf stat: Remove evsel metric_name/expr 2023-02-03 13:54:21 -03:00
rb_resort.h
rblist.c
rblist.h
record.c perf evlist: Remove group option. 2022-12-14 15:28:18 -03:00
record.h perf evlist: Remove group option. 2022-12-14 15:28:18 -03:00
rlimit.c
rlimit.h
rwsem.c
rwsem.h
s390-cpumcf-kernel.h
s390-cpumsf-kernel.h
s390-cpumsf.c
s390-cpumsf.h
s390-sample-raw.c
sample-raw.c
sample-raw.h
sample.h perf report: Support Retire Latency 2023-02-03 17:24:02 -03:00
session.c perf session: Show branch speculation info in raw dump 2023-02-02 17:18:31 -03:00
session.h perf build: Use libtraceevent from the system 2022-12-14 11:16:12 -03:00
setns.c
setup.py perf python: Fix splitting CC into compiler and options 2022-12-22 11:34:30 -03:00
sideband_evlist.c
smt.c perf expr: Make the online topology accessible globally 2023-02-19 08:03:12 -03:00
smt.h perf expr: Make the online topology accessible globally 2023-02-19 08:03:12 -03:00
sort.c perf c2c: Add report option to show false sharing in adjacent cachelines 2023-02-16 09:33:45 -03:00
sort.h perf c2c: Add report option to show false sharing in adjacent cachelines 2023-02-16 09:33:45 -03:00
spark.c
spark.h
srccode.c
srccode.h
srcline.c perf srcline: Conditionally suppress addr2line warnings 2022-12-21 14:52:40 -03:00
srcline.h
stat-display.c perf stat: Hide invalid uncore event output for aggr mode 2023-02-02 16:32:19 -03:00
stat-shadow.c perf stat: Avoid merging/aggregating metric counts twice 2023-02-09 18:28:08 -03:00
stat.c Merge remote-tracking branch 'torvalds/master' into perf/core 2022-12-16 09:53:53 -03:00
stat.h perf stat: Remove evsel metric_name/expr 2023-02-03 13:54:21 -03:00
strbuf.c
strbuf.h
stream.c
stream.h
strfilter.c
strfilter.h
string.c
string2.h
strlist.c
strlist.h
svghelper.c perf tools: Use dedicated non-atomic clear/set bit helpers 2022-12-05 09:29:06 -03:00
svghelper.h
symbol-elf.c perf symbols: Get symbols for .plt.got for x86-64 2023-02-02 16:32:01 -03:00
symbol-minimal.c perf symbol: Add filename__has_section() 2022-12-21 14:52:40 -03:00
symbol.c perf symbols: Symbol lookup with kcore can fail if multiple segments match stext 2023-02-02 16:32:19 -03:00
symbol.h perf symbols: Record whether a symbol is an alias for an IFUNC symbol 2023-02-01 21:49:29 -03:00
symbol_conf.h
symbol_fprintf.c
symsrc.h perf symbols: Allow for static executables with .plt 2023-02-01 21:51:51 -03:00
synthetic-events.c perf tools: Ensure evsel name is initialized 2023-02-19 08:00:37 -03:00
synthetic-events.h
syscalltbl.c
syscalltbl.h
target.c
target.h
term.c
term.h
thread-stack.c
thread-stack.h
thread.c
thread.h
thread_map.c perf thread_map: Reduce exposure of libperf internal API 2022-11-16 12:17:15 -03:00
thread_map.h perf thread_map: Reduce exposure of libperf internal API 2022-11-16 12:17:15 -03:00
time-utils.c
time-utils.h
tool.h
top.c
top.h
topdown.c
topdown.h
trace-event-info.c perf util: Add host_is_bigendian to util.h 2022-12-14 11:16:12 -03:00
trace-event-parse.c perf build: Use libtraceevent from the system 2022-12-14 11:16:12 -03:00
trace-event-read.c perf build: Use libtraceevent from the system 2022-12-14 11:16:12 -03:00
trace-event-scripting.c perf build: Use libtraceevent from the system 2022-12-14 11:16:12 -03:00
trace-event.c perf build: Use libtraceevent from the system 2022-12-14 11:16:12 -03:00
trace-event.h perf trace: Reduce #ifdefs for TEP_FIELD_IS_RELATIVE 2023-01-19 13:26:28 -03:00
tracepoint.c
tracepoint.h
trigger.h
tsc.c
tsc.h
units.c
units.h
unwind-libdw.c
unwind-libdw.h
unwind-libunwind-local.c
unwind-libunwind.c
unwind.h
usage.c
util.c
util.h perf util: Add host_is_bigendian to util.h 2022-12-14 11:16:12 -03:00
values.c
values.h
vdso.c
vdso.h
zlib.c
zstd.c