Yonghong Song
0ec9552b43
samples/bpf: add error checking for perf ioctl calls in bpf loader
...
load_bpf_file() should fail if ioctl with command
PERF_EVENT_IOC_ENABLE and PERF_EVENT_IOC_SET_BPF fails.
When they do fail, proper error messages are printed.
With this change, the below "syscall_tp" run shows that
the maximum number of bpf progs attaching to the same
perf tracepoint is indeed enforced.
$ ./syscall_tp -i 64
prog #0 : map ids 4 5
...
prog #63 : map ids 382 383
$ ./syscall_tp -i 65
prog #0 : map ids 4 5
...
prog #64 : map ids 388 389
ioctl PERF_EVENT_IOC_SET_BPF failed err Argument list too long
Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
2017-12-01 02:59:21 +01:00
..
auxdisplay
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
blackfin
bpf
samples/bpf: add error checking for perf ioctl calls in bpf loader
2017-12-01 02:59:21 +01:00
configfs
configfs: make config_item_type const
2017-10-19 16:15:15 +02:00
connector
A relatively calm cycle for the docs tree again.
2017-11-13 08:25:06 -08:00
hidraw
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
hw_breakpoint
kdb
kfifo
kfifo: clean up example to not use page_link
2017-07-12 16:26:01 -07:00
kobject
kprobes
Merge branch 'perf-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
2017-11-13 13:05:08 -08:00
livepatch
livepatch: add (un)patch callbacks
2017-10-19 10:08:56 +02:00
mei
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
mic /mpssd
Merge branch 'linus' into locking/core, to resolve conflicts
2017-11-07 10:32:44 +01:00
pktgen
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2017-11-04 09:26:51 +09:00
rpmsg
seccomp
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
sockmap
bpf: avoid preempt enable/disable in sockmap using tcp_skb_cb region
2017-10-20 13:01:29 +01:00
statx
statx: Include a mask for stx_attributes in struct statx
2017-04-03 01:06:00 -04:00
timers
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
trace_events
Merge branch 'for-linus' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/jikos/trivial
2017-11-15 10:14:11 -08:00
trace_printk
uhid
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
v4l
[media] media: v4l2-pci-skeleton: Fix error handling path in 'skeleton_probe()'
2017-10-04 16:55:02 -03:00
vfio-mdev
vfio-mdev/samples: make mdev_fops const and static
2017-10-02 12:40:05 -06:00
watchdog
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
Kconfig
livepatch: introduce shadow variable API
2017-09-14 23:06:12 +02:00
Makefile
statx: Add a system call to make enhanced file info available
2017-03-02 20:51:15 -05:00