linux-xiaomi-chiron/tools/perf/util
Miaoqian Lin 9937e8daab perf python: Fix NULL vs IS_ERR_OR_NULL() checking
The function trace_event__tp_format_id may return ERR_PTR(-ENOMEM).  Use
IS_ERR_OR_NULL to check tp_format.

Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Song Liu <song@kernel.org>
Link: http://lore.kernel.org/lkml/20211211053856.19827-1-linmq006@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2021-12-11 08:23:54 -03:00
..
arm-spe-decoder perf arm-spe: Save context ID in record 2021-11-13 18:11:51 -03:00
bpf_skel perf bpf_skel: Do not use typedef to avoid error on old clang 2021-12-06 21:57:53 -03:00
c++ perf test: Convert clang tests to test cases. 2021-11-13 18:11:49 -03:00
cs-etm-decoder
include
intel-pt-decoder perf intel-pt: Fix missing 'instruction' events with 'q' option 2021-12-11 08:19:47 -03:00
libunwind
scripting-engines
affinity.c
affinity.h
amd-sample-raw.c
annotate.c perf symbols: Factor out annotation init/exit 2021-11-13 18:11:51 -03:00
annotate.h perf symbols: Factor out annotation init/exit 2021-11-13 18:11:51 -03:00
archinsn.h
arm-spe.c perf inject: Fix ARM SPE handling 2021-11-18 10:08:07 -03:00
arm-spe.h
auxtrace.c perf auxtrace: Add itrace A option to approximate IPC 2021-10-27 16:20:08 -03:00
auxtrace.h perf auxtrace: Add itrace d+o option to direct debug log to stdout 2021-10-27 16:20:45 -03:00
block-info.c
block-info.h
block-range.c
block-range.h
bpf-event.c perf tools: Add more weak libbpf functions 2021-11-13 18:11:51 -03:00
bpf-event.h perf bpf: Pull in bpf_program__get_prog_info_linear() 2021-11-01 18:16:40 -03:00
bpf-loader.c
bpf-loader.h
bpf-prologue.c
bpf-prologue.h
bpf-utils.c perf bpf: Pull in bpf_program__get_prog_info_linear() 2021-11-01 18:16:40 -03:00
bpf-utils.h perf bpf: Pull in bpf_program__get_prog_info_linear() 2021-11-01 18:16:40 -03:00
bpf_counter.c perf bpf: Pull in bpf_program__get_prog_info_linear() 2021-11-01 18:16:40 -03:00
bpf_counter.h
bpf_counter_cgroup.c
bpf_map.c
bpf_map.h
branch.c
branch.h
Build perf bpf: Pull in bpf_program__get_prog_info_linear() 2021-11-01 18:16:40 -03:00
build-id.c
build-id.h
cache.h
cacheline.c
cacheline.h
call-path.c
call-path.h
callchain.c
callchain.h
cap.c
cap.h
cgroup.c
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
cpumap.h
cputopo.c perf cputopo: Match thread_siblings to topology ABI name 2021-11-13 18:11:50 -03:00
cputopo.h perf cputopo: Match thread_siblings to topology ABI name 2021-11-13 18:11:50 -03:00
cs-etm.c perf cs-etm: Print size using consistent format 2021-11-13 18:11:50 -03:00
cs-etm.h
data-convert-bt.c perf tools: Use __BYTE_ORDER__ 2021-11-07 12:27:38 -03:00
data-convert-json.c
data-convert.h
data.c
data.h
db-export.c
db-export.h
debug.c
debug.h
demangle-java.c
demangle-java.h
demangle-ocaml.c
demangle-ocaml.h
demangle-rust.c
demangle-rust.h
dlfilter.c
dlfilter.h
dso.c perf bpf: Pull in bpf_program__get_prog_info_linear() 2021-11-01 18:16:40 -03:00
dso.h perf dso: Fix /proc/kcore access on 32 bit systems 2021-10-25 13:47:42 -03:00
dsos.c
dsos.h
dump-insn.c
dump-insn.h
dwarf-aux.c
dwarf-aux.h
dwarf-regs.c
env.c perf bpf: Avoid memory leak from perf_env__insert_btf() 2021-11-13 18:11:51 -03:00
env.h perf bpf: Avoid memory leak from perf_env__insert_btf() 2021-11-13 18:11:51 -03:00
event.c perf tools: Add support for PERF_RECORD_AUX_OUTPUT_HW_ID 2021-10-20 11:22:27 -03:00
event.h perf tools: Prevent out-of-bounds access to registers 2021-12-11 08:19:46 -03:00
events_stats.h
evlist-hybrid.c
evlist-hybrid.h
evlist.c
evlist.h
evsel.c perf evsel: Fix memory leaks relating to unit 2021-11-18 10:19:14 -03:00
evsel.h perf expr: Add source_count for aggregating events 2021-11-13 18:11:50 -03:00
evsel_config.h
evsel_fprintf.c perf script: Show binary offsets for userspace addr 2021-10-27 20:56:36 -03:00
evsel_fprintf.h
evswitch.c
evswitch.h
expr.c perf expr: Add source_count for aggregating events 2021-11-13 18:11:50 -03:00
expr.h perf expr: Add source_count for aggregating events 2021-11-13 18:11:50 -03:00
expr.l perf expr: Add source_count for aggregating events 2021-11-13 18:11:50 -03:00
expr.y perf expr: Add source_count for aggregating events 2021-11-13 18:11:50 -03:00
find-map.c
fncache.c
fncache.h
genelf.c
genelf.h perf tools: Use __BYTE_ORDER__ 2021-11-07 12:27:38 -03:00
genelf_debug.c
generate-cmdlist.sh
get_current_dir_name.c
get_current_dir_name.h
hashmap.c
hashmap.h
header.c perf header: Fix memory leaks when processing feature headers 2021-12-06 21:57:53 -03:00
header.h
help-unknown-cmd.c
help-unknown-cmd.h
hist.c perf sort: Fix the 'p_stage_cyc' sort key behavior 2021-11-18 10:08:07 -03:00
hist.h perf hist: Fix memory leak of a perf_hpp_fmt 2021-11-18 10:16:56 -03:00
intel-bts.c perf tools: Use __BYTE_ORDER__ 2021-11-07 12:27:38 -03:00
intel-bts.h
intel-pt.c perf intel-pt: Fix error timestamp setting on the decoder error path 2021-12-11 08:19:47 -03:00
intel-pt.h
intlist.c
intlist.h
iostat.c
iostat.h
jit.h
jitdump.c
jitdump.h
kvm-stat.h
levenshtein.c
levenshtein.h
llvm-utils.c
llvm-utils.h
lzma.c
machine.c perf tools: Add support for PERF_RECORD_AUX_OUTPUT_HW_ID 2021-10-20 11:22:27 -03:00
machine.h perf tools: Add support for PERF_RECORD_AUX_OUTPUT_HW_ID 2021-10-20 11:22:27 -03:00
map.c
map.h
map_symbol.h
maps.h
mem-events.c
mem-events.h
mem2node.c
mem2node.h
memswap.c
memswap.h
metricgroup.c perf metric: Fix memory leaks 2021-11-07 15:39:28 -03:00
metricgroup.h perf list: Display hybrid PMU events with cpu type 2021-10-25 13:47:42 -03:00
mmap.c
mmap.h
namespaces.c
namespaces.h
ordered-events.c
ordered-events.h
parse-branch-options.c
parse-branch-options.h
parse-events-hybrid.c perf parse-events: Add new "metric-id" term 2021-10-20 10:54:44 -03:00
parse-events-hybrid.h perf parse-events: Add new "metric-id" term 2021-10-20 10:54:44 -03:00
parse-events.c perf evsel: Fix memory leaks relating to unit 2021-11-18 10:19:14 -03:00
parse-events.h perf parse-event: Add init and exit to parse_event_error 2021-11-07 15:39:25 -03:00
parse-events.l perf metric: Encode and use metric-id as qualifier 2021-10-20 10:57:05 -03:00
parse-events.y perf parse-events: Rename parse_events_error functions 2021-11-07 15:38:54 -03:00
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_api_probe.c
perf_api_probe.h
perf_event_attr_fprintf.c
perf_regs.c perf tools: Prevent out-of-bounds access to registers 2021-12-11 08:19:46 -03:00
perf_regs.h
pfm.c perf parse-events: Add new "metric-id" term 2021-10-20 10:54:44 -03:00
pfm.h
pmu-hybrid.c
pmu-hybrid.h
pmu.c perf parse-events: Rename parse_events_error functions 2021-11-07 15:38:54 -03:00
pmu.h perf evsel: Fix missing exclude_{host,guest} setting 2021-11-06 17:54:42 -03:00
pmu.l
pmu.y
print_binary.c
print_binary.h
probe-event.c
probe-event.h
probe-file.c
probe-file.h
probe-finder.c
probe-finder.h
pstack.c
pstack.h
python-ext-sources tools lib: Adopt list_sort() from the kernel sources 2021-10-20 10:30:59 -03:00
python.c perf python: Fix NULL vs IS_ERR_OR_NULL() checking 2021-12-11 08:23:54 -03:00
rb_resort.h
rblist.c
rblist.h
record.c
record.h
rlimit.c
rlimit.h
rwsem.c
rwsem.h
s390-cpumcf-kernel.h
s390-cpumsf-kernel.h
s390-cpumsf.c perf tools: Use __BYTE_ORDER__ 2021-11-07 12:27:38 -03:00
s390-cpumsf.h
s390-sample-raw.c perf pmu: Make pmu_event tables const. 2021-10-20 10:32:33 -03:00
sample-raw.c
sample-raw.h
session.c Merge remote-tracking branch 'torvalds/master' into perf/core 2021-10-26 11:03:02 -03:00
session.h perf session: Introduce decompressor in reader object 2021-10-25 13:47:41 -03:00
setns.c
setup.py
sideband_evlist.c
smt.c perf tools: Fix SMT detection fast read path 2021-12-06 21:57:53 -03:00
smt.h
sort.c perf sort: Fix the 'p_stage_cyc' sort key behavior 2021-11-18 10:08:07 -03:00
sort.h perf sort: Fix the 'p_stage_cyc' sort key behavior 2021-11-18 10:08:07 -03:00
spark.c
spark.h
srccode.c
srccode.h
srcline.c
srcline.h
stat-display.c
stat-shadow.c perf expr: Add source_count for aggregating events 2021-11-13 18:11:50 -03:00
stat.c
stat.h
strbuf.c
strbuf.h
stream.c
stream.h
strfilter.c
strfilter.h
string.c
string2.h
strlist.c
strlist.h
svghelper.c
svghelper.h
symbol-elf.c
symbol-minimal.c
symbol.c perf symbols: Factor out annotation init/exit 2021-11-13 18:11:51 -03:00
symbol.h perf symbols: Bit pack to save a byte 2021-11-13 18:11:51 -03:00
symbol_conf.h
symbol_fprintf.c
symsrc.h
synthetic-events.c
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
thread_map.h
time-utils.c
time-utils.h
tool.h perf tools: Add support for PERF_RECORD_AUX_OUTPUT_HW_ID 2021-10-20 11:22:27 -03:00
top.c
top.h
topdown.c
topdown.h
trace-event-info.c
trace-event-parse.c
trace-event-read.c
trace-event-scripting.c
trace-event.c
trace-event.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 perf report: Fix memory leaks around perf_tip() 2021-11-18 10:18:03 -03:00
util.h perf report: Fix memory leaks around perf_tip() 2021-11-18 10:18:03 -03:00
values.c
values.h
vdso.c
vdso.h
zlib.c
zstd.c