Martin KaFai Lau
f9a7cf6eb1
bpf: Introduce BPF_TRACE_x helper for the tracing tests
...
For BPF_PROG_TYPE_TRACING, the bpf_prog's ctx is an array of u64.
This patch borrows the idea from BPF_CALL_x in filter.h to
convert a u64 to the arg type of the traced function.
The new BPF_TRACE_x has an arg to specify the return type of a bpf_prog.
It will be used in the future TCP-ops bpf_prog that may return "void".
The new macros are defined in the new header file "bpf_trace_helpers.h".
It is under selftests/bpf/ for now. It could be moved to libbpf later
after seeing more upcoming non-tracing use cases.
The tests are changed to use these new macros also. Hence,
the k[s]u8/16/32/64 are no longer needed and they are removed
from the bpf_helpers.h.
Signed-off-by: Martin KaFai Lau <kafai@fb.com >
Signed-off-by: Alexei Starovoitov <ast@kernel.org >
Link: https://lore.kernel.org/bpf/20191123202504.1502696-1-kafai@fb.com
2019-11-24 17:12:11 -08:00
..
2019-08-13 16:31:10 +02:00
2019-08-07 14:43:49 -07:00
2019-08-07 14:43:49 -07:00
2019-08-07 14:43:49 -07:00
2019-08-07 14:43:49 -07:00
2019-08-07 14:43:49 -07:00
2019-11-04 16:06:56 +01:00
2019-08-07 14:43:49 -07:00
2019-11-04 16:06:56 +01:00
2019-11-04 16:06:56 +01:00
2019-11-04 16:06:56 +01:00
2019-11-04 16:06:56 +01:00
2019-11-04 16:06:56 +01:00
2019-10-15 16:06:05 -07:00
2019-10-15 16:06:05 -07:00
2019-10-15 16:06:05 -07:00
2019-10-15 16:06:05 -07:00
2019-10-15 16:06:05 -07:00
2019-10-15 16:06:05 -07:00
2019-10-15 16:06:05 -07:00
2019-10-15 16:06:05 -07:00
2019-08-07 14:43:49 -07:00
2019-08-07 14:43:49 -07:00
2019-08-07 14:43:49 -07:00
2019-08-07 14:43:49 -07:00
2019-08-07 14:43:49 -07:00
2019-08-07 14:43:49 -07:00
2019-08-07 14:43:49 -07:00
2019-08-07 14:43:49 -07:00
2019-08-07 14:43:49 -07:00
2019-08-07 14:43:49 -07:00
2019-08-07 14:43:49 -07:00
2019-08-07 14:43:49 -07:00
2019-08-07 14:43:49 -07:00
2019-08-07 14:43:49 -07:00
2019-08-07 14:43:49 -07:00
2019-08-07 14:43:49 -07:00
2019-08-07 14:43:49 -07:00
2019-08-07 14:43:49 -07:00
2019-08-07 14:43:49 -07:00
2019-08-07 14:43:49 -07:00
2019-08-07 14:43:49 -07:00
2019-08-07 14:43:49 -07:00
2019-08-07 14:43:49 -07:00
2019-08-07 14:43:49 -07:00
2019-08-07 14:43:49 -07:00
2019-08-07 14:43:49 -07:00
2019-08-07 14:43:49 -07:00
2019-08-07 14:43:49 -07:00
2019-08-07 14:43:49 -07:00
2019-08-07 14:43:49 -07:00
2019-08-07 14:43:49 -07:00
2019-11-04 16:06:56 +01:00
2019-11-04 16:06:56 +01:00
2019-05-24 14:05:58 -07:00
2019-05-24 14:05:58 -07:00
2019-05-24 14:05:58 -07:00
2019-05-24 14:05:58 -07:00
2019-05-24 14:05:58 -07:00
2019-10-09 15:38:36 -07:00
2019-05-24 14:05:58 -07:00
2019-02-11 20:31:38 -08:00
2019-02-11 20:31:38 -08:00
2019-11-04 16:06:56 +01:00
2019-02-11 20:31:38 -08:00
2019-11-24 17:12:11 -08:00
2019-11-24 17:12:11 -08:00
2019-11-24 17:12:11 -08:00
2019-07-05 22:52:25 +02:00
2019-11-24 17:12:11 -08:00
2019-10-08 23:16:03 +02:00
2019-10-08 23:16:03 +02:00
2019-10-08 23:16:03 +02:00
2019-08-06 08:20:25 -07:00
2019-08-06 08:20:31 -07:00
2019-07-05 22:52:25 +02:00
2019-05-23 16:20:57 +02:00
2019-05-23 16:20:57 +02:00
2019-05-23 16:20:57 +02:00
2019-06-19 02:22:52 +02:00
2019-06-19 02:22:52 +02:00
2019-11-02 12:39:13 -07:00
2019-02-11 20:31:38 -08:00
2019-02-11 20:31:38 -08:00
2019-02-11 20:31:38 -08:00
2019-07-22 16:19:06 +02:00
2019-07-05 22:52:25 +02:00
2019-06-11 10:36:02 +02:00
2019-06-11 10:36:02 +02:00
2019-07-05 22:52:25 +02:00
2019-08-17 23:18:54 +02:00
2019-06-27 15:25:17 -07:00
2019-10-08 23:16:03 +02:00
2019-06-19 02:22:52 +02:00
2019-06-19 02:22:52 +02:00
2019-06-19 02:22:52 +02:00
2019-11-02 12:39:13 -07:00
2019-11-24 17:04:12 -08:00
2019-11-24 17:04:12 -08:00
2019-11-24 17:04:12 -08:00
2019-11-24 17:04:12 -08:00
2019-11-24 17:04:12 -08:00
2019-10-08 23:16:03 +02:00
2019-02-11 20:31:38 -08:00
2019-10-05 18:09:47 -07:00
2019-11-19 15:00:12 -08:00
2019-11-19 15:00:12 -08:00
2019-11-19 15:00:12 -08:00
2019-11-24 16:58:45 -08:00
2019-11-24 16:58:45 -08:00
2019-11-24 16:58:45 -08:00
2019-11-24 16:58:45 -08:00
2019-11-24 16:58:45 -08:00
2019-11-24 16:58:45 -08:00
2019-11-24 16:58:46 -08:00
2019-11-24 16:58:45 -08:00
2019-11-24 16:58:45 -08:00
2019-11-24 16:58:45 -08:00
2019-11-24 16:58:45 -08:00
2019-11-24 16:58:45 -08:00
2019-11-24 16:58:45 -08:00
2019-10-05 18:09:47 -07:00
2019-07-05 22:52:25 +02:00
2019-07-03 15:06:33 +02:00
2019-07-05 22:52:25 +02:00
2019-07-05 22:52:25 +02:00
2019-02-11 20:31:38 -08:00
2019-02-13 18:27:55 -08:00
2019-09-03 21:01:52 +02:00
2019-07-05 22:52:25 +02:00
2019-07-05 22:52:25 +02:00
2019-11-18 11:42:00 +01:00
2019-07-05 22:52:25 +02:00
2019-11-24 17:12:11 -08:00
2019-10-05 18:09:47 -07:00
2019-11-02 12:35:07 -07:00
2019-11-10 19:26:30 -08:00
2019-11-15 23:45:50 +01:00
2019-05-30 11:29:53 -07:00
2019-11-02 12:45:08 -07:00
2019-02-11 20:31:38 -08:00
2019-10-17 12:15:08 -07:00
2019-10-11 01:49:15 +02:00
2019-11-18 21:37:00 +01:00
2019-07-05 22:52:25 +02:00
2019-07-05 22:52:25 +02:00
2019-10-21 14:49:12 +02:00
2019-02-11 20:31:38 -08:00
2019-10-15 16:24:26 -07:00
2019-07-05 22:52:25 +02:00
2019-02-11 20:31:38 -08:00
2019-02-11 20:31:38 -08:00
2019-07-05 22:52:25 +02:00
2019-02-11 20:31:38 -08:00
2019-07-15 23:02:17 +02:00
2019-10-05 18:09:47 -07:00
2019-11-11 14:03:10 +01:00
2019-06-19 02:22:52 +02:00
2019-06-11 10:36:02 +02:00
2019-09-16 09:32:00 +02:00
2019-04-24 01:32:26 +02:00
2019-07-30 21:03:05 -07:00
2019-11-02 12:39:13 -07:00
2019-07-05 22:52:25 +02:00
2019-07-05 22:52:25 +02:00
2019-02-11 20:31:38 -08:00
2019-02-11 20:31:38 -08:00
2019-04-04 01:27:38 +02:00
2019-07-03 15:06:33 +02:00
2019-04-04 01:27:38 +02:00
2019-07-05 22:52:25 +02:00
2019-02-11 20:31:38 -08:00
2019-07-18 13:54:54 -07:00
2019-02-11 20:31:38 -08:00
2019-02-11 20:31:38 -08:00
2019-07-05 22:52:25 +02:00
2019-02-11 20:31:38 -08:00
2019-07-05 22:52:25 +02:00
2019-06-24 18:18:30 -07:00
2019-07-05 22:52:25 +02:00