linux_dsm_epyc7002/include/trace/events
Daniel Borkmann a67edbf4fb bpf: add initial bpf tracepoints
This work adds a number of tracepoints to paths that are either
considered slow-path or exception-like states, where monitoring or
inspecting them would be desirable.

For bpf(2) syscall, tracepoints have been placed for main commands
when they succeed. In XDP case, tracepoint is for exceptions, that
is, f.e. on abnormal BPF program exit such as unknown or XDP_ABORTED
return code, or when error occurs during XDP_TX action and the packet
could not be forwarded.

Both have been split into separate event headers, and can be further
extended. Worst case, if they unexpectedly should get into our way in
future, they can also removed [1]. Of course, these tracepoints (like
any other) can be analyzed by eBPF itself, etc. Example output:

  # ./perf record -a -e bpf:* sleep 10
  # ./perf script
  sock_example  6197 [005]   283.980322:      bpf:bpf_map_create: map type=ARRAY ufd=4 key=4 val=8 max=256 flags=0
  sock_example  6197 [005]   283.980721:       bpf:bpf_prog_load: prog=a5ea8fa30ea6849c type=SOCKET_FILTER ufd=5
  sock_example  6197 [005]   283.988423:   bpf:bpf_prog_get_type: prog=a5ea8fa30ea6849c type=SOCKET_FILTER
  sock_example  6197 [005]   283.988443: bpf:bpf_map_lookup_elem: map type=ARRAY ufd=4 key=[06 00 00 00] val=[00 00 00 00 00 00 00 00]
  [...]
  sock_example  6197 [005]   288.990868: bpf:bpf_map_lookup_elem: map type=ARRAY ufd=4 key=[01 00 00 00] val=[14 00 00 00 00 00 00 00]
       swapper     0 [005]   289.338243:    bpf:bpf_prog_put_rcu: prog=a5ea8fa30ea6849c type=SOCKET_FILTER

  [1] https://lwn.net/Articles/705270/

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-01-25 13:17:47 -05:00
..
9p.h
afs.h afs: Refcount the afs_call struct 2017-01-09 11:10:02 +00:00
alarmtimer.h ktime: Get rid of the union 2016-12-25 17:21:22 +01:00
asoc.h
bcache.h block: better op and flags encoding 2016-10-28 08:48:16 -06:00
block.h block: better op and flags encoding 2016-10-28 08:48:16 -06:00
bpf.h bpf: add initial bpf tracepoints 2017-01-25 13:17:47 -05:00
btrfs.h btrfs: make tracepoint format strings more compact 2017-01-09 11:27:07 +01:00
cgroup.h cgroup: add tracepoints for basic operations 2016-08-10 11:23:44 -04:00
clk.h
cma.h
compaction.h mm, compaction: rename COMPACT_PARTIAL to COMPACT_SUCCESS 2016-10-07 18:46:27 -07:00
context_tracking.h
cpuhp.h cpu/hotplug: Add multi instance support 2016-09-02 20:05:05 +02:00
devlink.h
dma_fence.h dma-buf: Rename struct fence to dma_fence 2016-10-25 14:40:39 +02:00
ext4.h
f2fs.h for-f2fs-4.10 2016-12-14 09:07:36 -08:00
fib6.h
fib.h
filelock.h
filemap.h
gpio.h
host1x.h
hswadsp.h
huge_memory.h
i2c.h tracing: Have the reg function allow to fail 2016-12-09 09:13:30 -05:00
intel_ish.h HID: intel-ish-hid: ipc layer 2016-08-17 11:13:07 +02:00
intel-sst.h
iommu.h
ipi.h
irq.h irq: Fix typo in tracepoint.xml 2016-09-29 10:03:38 +02:00
jbd2.h
kmem.h
kvm.h
libata.h
lock.h
mce.h x86/mce/AMD: Save MCA_IPID in MCE struct on SMCA systems 2016-09-13 15:23:12 +02:00
mdio.h net/phy: add trace events for mdio accesses 2016-11-24 11:55:43 -05:00
migrate.h
mmc.h
mmflags.h mm: get rid of __GFP_OTHER_NODE 2017-01-10 18:31:55 -08:00
module.h
napi.h
net.h
nilfs2.h
nmi.h
oom.h
page_isolation.h
page_ref.h
pagemap.h
power_cpu_migrate.h
power.h cpufreq: intel_pstate: Add io_boost trace 2016-09-16 23:55:30 +02:00
printk.h
random.h
rcu.h torture: Trace long read-side delays 2016-11-14 10:46:30 -08:00
regulator.h
rpm.h
rxrpc.h rxrpc: Add some more tracing 2017-01-05 11:39:12 +00:00
sched.h
scsi.h
signal.h
skb.h
sock.h
spi.h
spmi.h
sunrpc.h
sunvnet.h
swiotlb.h swiotlb: Add swiotlb=noforce debug option 2016-12-19 09:05:20 -05:00
syscalls.h
target.h
task.h
thermal_power_allocator.h
thermal.h
thp.h
timer.h ktime: Get rid of the union 2016-12-25 17:21:22 +01:00
tlb.h
udp.h
v4l2.h
vb2.h
vmscan.h
vsock_virtio_transport_common.h
wbt.h blk-wbt: add general throttling mechanism 2016-11-10 13:53:32 -07:00
workqueue.h
writeback.h
xdp.h bpf: add initial bpf tracepoints 2017-01-25 13:17:47 -05:00
xen.h