kernel_optimize_test/tools/perf
Arnaldo Carvalho de Melo 5620196951 perf: Make perf_event_output() propagate the output() return
For the original mode of operation it isn't needed, since we report back
errors via PERF_RECORD_LOST records in the ring buffer, but for use in
bpf_perf_event_output() it is convenient to return the errors, basically
-ENOSPC.

Currently bpf_perf_event_output() returns an error indication, the last
thing it does, which is to push it to the ring buffer is that can fail
and if so, this failure won't be reported back to its users, fix it.

Reported-by: Jamal Hadi Salim <jhs@mojatatu.com>
Tested-by: Jamal Hadi Salim <jhs@mojatatu.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexei Starovoitov <alexei.starovoitov@gmail.com>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lkml.kernel.org/r/20190118150938.GN5823@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2019-01-21 17:00:57 -03:00
..
arch perf powerpc: Rework syscall table generation 2019-01-10 10:34:52 -03:00
bench
Documentation
examples/bpf perf: Make perf_event_output() propagate the output() return 2019-01-21 17:00:57 -03:00
include/bpf
jvmti
pmu-events nds32 patches for 4.21 2018-12-29 09:37:03 -08:00
python
scripts
tests perf tools: Remove duplicate headers 2019-01-21 15:15:57 -03:00
trace perf beauty: Switch from using uapi/linux/fs.h to uapi/linux/mount.h 2019-01-08 14:09:33 -03:00
ui perf tools: Replace automatic const char[] variables by statics 2019-01-21 15:15:57 -03:00
util perf report: Dump s390 counter set data to file 2019-01-21 17:00:57 -03:00
.gitignore
Build
builtin-annotate.c
builtin-bench.c
builtin-buildid-cache.c
builtin-buildid-list.c
builtin-c2c.c perf tools: Replace automatic const char[] variables by statics 2019-01-21 15:15:57 -03:00
builtin-config.c
builtin-data.c
builtin-diff.c
builtin-evlist.c
builtin-ftrace.c
builtin-help.c
builtin-inject.c
builtin-kallsyms.c
builtin-kmem.c perf tools: Replace automatic const char[] variables by statics 2019-01-21 15:15:57 -03:00
builtin-kvm.c
builtin-list.c
builtin-lock.c
builtin-mem.c
builtin-probe.c
builtin-record.c
builtin-report.c perf tools: Replace automatic const char[] variables by statics 2019-01-21 15:15:57 -03:00
builtin-sched.c perf tools: Replace automatic const char[] variables by statics 2019-01-21 15:15:57 -03:00
builtin-script.c perf thread-stack: Fix thread stack processing for the idle task 2019-01-02 11:03:17 -03:00
builtin-stat.c perf tools: Remove duplicate headers 2019-01-21 15:15:57 -03:00
builtin-timechart.c
builtin-top.c perf top: Lift restriction on using callchains without "sym" in --sort 2019-01-08 13:28:13 -03:00
builtin-trace.c perf trace: Fix alignment for [continued] lines 2019-01-08 13:28:12 -03:00
builtin-version.c
builtin.h
check-headers.sh tools headers powerpc: Remove unistd.h 2019-01-10 10:42:08 -03:00
command-list.txt
CREDITS
design.txt perf/doc: Update design.txt for exclude_{host|guest} flags 2019-01-21 11:01:18 +01:00
Makefile
Makefile.config perf build: Don't unconditionally link the libbfd feature test to -liberty and -lz 2018-12-21 09:42:46 -03:00
Makefile.perf perf tools: Make find_vdso_map() more modular 2019-01-08 13:28:13 -03:00
MANIFEST
perf-archive.sh
perf-completion.sh
perf-read-vdso.c perf tools: Make find_vdso_map() more modular 2019-01-08 13:28:13 -03:00
perf-sys.h
perf-with-kcore.sh
perf.c
perf.h