Daniel Borkmann
f035a51536
bpf: add BPF_SIZEOF and BPF_FIELD_SIZEOF macros
...
Add BPF_SIZEOF() and BPF_FIELD_SIZEOF() macros to improve the code a bit
which otherwise often result in overly long bytes_to_bpf_size(sizeof())
and bytes_to_bpf_size(FIELD_SIZEOF()) lines. So place them into a macro
helper instead. Moreover, we currently have a BUILD_BUG_ON(BPF_FIELD_SIZEOF())
check in convert_bpf_extensions(), but we should rather make that generic
as well and add a BUILD_BUG_ON() test in all BPF_SIZEOF()/BPF_FIELD_SIZEOF()
users to detect any rewriter size issues at compile time. Note, there are
currently none, but we want to assert that it stays this way.
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-09-09 19:36:04 -07:00
..
blktrace.c
block: Fix secure erase
2016-08-16 09:16:51 -06:00
bpf_trace.c
bpf: add BPF_SIZEOF and BPF_FIELD_SIZEOF macros
2016-09-09 19:36:04 -07:00
ftrace.c
ftrace: Move toplevel init out of ftrace_init_tracefs()
2016-07-05 10:47:03 -04:00
Kconfig
tracing: Have HIST_TRIGGERS select TRACING
2016-07-05 15:49:01 -04:00
Makefile
Makefile: Mute warning for __builtin_return_address(>0) for tracing only
2016-08-02 12:57:48 -04:00
power-traces.c
cpufreq: schedutil: New governor based on scheduler utilization data
2016-04-02 01:09:12 +02:00
ring_buffer.c
ring-buffer: Prevent overflow of size in ring_buffer_resize()
2016-05-13 16:44:20 -04:00
ring_buffer_benchmark.c
rpm-traces.c
trace.c
tracing: Using for_each_set_bit() to simplify trace_pid_write()
2016-07-05 11:22:40 -04:00
trace.h
ftrace: Reduce size of function graph entries
2016-07-05 17:28:30 -04:00
trace_benchmark.c
trace_benchmark.h
trace_branch.c
trace_clock.c
trace_entries.h
ftrace: Reduce size of function graph entries
2016-07-05 17:28:30 -04:00
trace_event_perf.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
2016-05-17 16:26:30 -07:00
trace_events.c
tracing: Show the preempt count of when the event was called
2016-06-20 09:54:21 -04:00
trace_events_filter.c
tracing: Use temp buffer when filtering events
2016-05-03 17:59:24 -04:00
trace_events_filter_test.h
trace_events_hist.c
tracing: Fix use-after-free in hist_register_trigger()
2016-08-02 15:16:30 -04:00
trace_events_trigger.c
tracing: Add support for named triggers
2016-04-19 18:56:00 -04:00
trace_export.c
trace_functions.c
ftrace: Have set_ftrace_pid use the bitmap like events do
2016-06-20 09:54:19 -04:00
trace_functions_graph.c
tracing/function_graph: Fix filters for function_graph threshold
2016-06-27 13:29:24 -04:00
trace_irqsoff.c
tracing: Remove redundant reset per-CPU buff in irqsoff tracer
2016-03-18 16:39:11 -04:00
trace_kdb.c
trace_kprobe.c
tracing: expose current->comm to [ku]probe events
2016-06-20 09:54:19 -04:00
trace_mmiotrace.c
tracing: Expose CPU physical addresses (resource values) for PCI devices
2016-06-20 09:54:22 -04:00
trace_nop.c
tracing: Fix typoes in code comment and printk in trace_nop.c
2016-03-08 11:23:57 -05:00
trace_output.c
tracing: Record and show NMI state
2016-03-22 18:04:10 -04:00
trace_output.h
trace_printk.c
tracing: Handle NULL formats in hold_module_trace_bprintk_format()
2016-06-20 09:46:12 -04:00
trace_probe.c
tracing: expose current->comm to [ku]probe events
2016-06-20 09:54:19 -04:00
trace_probe.h
tracing: expose current->comm to [ku]probe events
2016-06-20 09:54:19 -04:00
trace_sched_switch.c
trace_sched_wakeup.c
trace_selftest.c
trace_selftest_dynamic.c
trace_seq.c
trace_stack.c
tracing, kasan: Silence Kasan warning in check_stack of stack_tracer
2016-02-19 12:36:44 -05:00
trace_stat.c
kernel/...: convert pr_warning to pr_warn
2016-03-22 15:36:02 -07:00
trace_stat.h
trace_syscalls.c
perf: split perf_trace_buf_prepare into alloc and update parts
2016-04-07 21:04:26 -04:00
trace_uprobe.c
perf: split perf_trace_buf_prepare into alloc and update parts
2016-04-07 21:04:26 -04:00
tracing_map.c
tracing: Handle tracing_map_alloc_elts() error path correctly
2016-04-26 09:40:30 -04:00
tracing_map.h
tracing: Update some tracing_map constants and comments
2016-04-19 12:16:06 -04:00