Daniel Borkmann
03e69b508b
ebpf: add prandom helper for packet sampling
...
This work is similar to commit 4cd3675ebf ("filter: added BPF
random opcode") and adds a possibility for packet sampling in eBPF.
Currently, this is only possible in classic BPF and useful to
combine sampling with f.e. packet sockets, possible also with tc.
Example function proto-type looks like:
u32 (*prandom_u32)(void) = (void *)BPF_FUNC_get_prandom_u32;
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net >
Signed-off-by: David S. Miller <davem@davemloft.net >
2015-03-15 21:57:25 -04:00
..
2015-01-15 16:57:59 +01:00
2015-03-06 01:21:21 +01:00
2015-02-02 18:09:42 +01:00
2015-02-23 16:41:08 -05:00
2015-01-27 09:34:59 -06:00
2015-03-15 21:57:25 -04:00
2015-02-02 19:25:51 -08:00
2015-03-06 21:50:02 -05:00
2015-02-09 13:06:47 -05:00
2015-02-09 14:07:54 -08:00
2015-02-11 15:12:13 -08:00
2015-02-05 02:45:00 -05:00
2015-02-27 16:25:25 -05:00
2015-03-05 14:52:23 -05:00
2015-01-29 14:05:05 +01:00
2015-02-09 16:59:03 +09:00
2015-01-25 14:54:41 -08:00
2015-02-17 16:29:36 +01:00
2015-02-11 17:06:00 -08:00
2015-02-17 14:34:51 -08:00
2015-01-23 14:33:36 +01:00
2015-02-12 18:54:08 -08:00
2015-01-20 13:51:06 +01:00
2015-01-27 17:11:07 -08:00
2015-01-19 14:21:18 -05:00
2015-02-02 18:46:51 -08:00
2015-02-02 21:50:40 +01:00
2015-01-29 16:54:44 +01:00
2015-02-19 16:15:35 -07:00
2015-02-07 22:40:17 -08:00
2015-01-27 08:14:26 -06:00
2015-03-01 14:05:19 -05:00
2015-02-04 22:15:45 -08:00
2015-02-12 12:30:29 +01:00
2015-01-21 19:21:30 +01:00
2015-03-11 23:28:09 -04:00
2015-02-07 18:43:16 +08:00
2015-03-07 03:39:55 +01:00
2015-02-08 01:03:12 -08:00
2015-02-09 13:20:47 -08:00
2015-03-05 22:08:42 -05:00
2015-01-31 09:05:06 -08:00
2015-02-02 11:51:38 -02:00
2015-02-10 12:38:14 -07:00
2015-01-21 16:28:56 +10:30
2015-02-11 15:03:15 +10:30
2015-02-11 15:03:16 +10:30
2015-02-17 16:19:27 +10:30
2015-02-11 15:03:15 +10:30