Files
kernel_arpi/include/linux
Daniel Borkmann c04167ce2c ebpf: add helper for obtaining current processor id
This patch adds the possibility to obtain raw_smp_processor_id() in
eBPF. Currently, this is only possible in classic BPF where commit
da2033c282 ("filter: add SKF_AD_RXHASH and SKF_AD_CPU") has added
facilities for this.

Perhaps most importantly, this would also allow us to track per CPU
statistics with eBPF maps, or to implement a poor-man's per CPU data
structure through eBPF maps.

Example function proto-type looks like:

  u32 (*smp_processor_id)(void) = (void *)BPF_FUNC_get_smp_processor_id;

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-02-19 13:31:40 +03:00
2015-01-29 10:49:28 +02:00
2015-02-18 07:28:37 -08:00
2015-02-02 14:23:42 -08:00
2015-02-12 18:54:15 -08:00
2015-03-02 16:43:41 -05:00
2015-01-25 23:17:28 -05:00
2015-01-27 11:09:13 +01:00
2015-02-20 15:24:04 -05:00
2015-02-13 21:21:36 -08:00
2015-02-17 14:34:51 -08:00
2015-02-11 17:06:02 -08:00
2015-03-12 14:39:40 -04:00
2015-03-11 17:56:28 -04:00
2015-01-25 23:17:28 -05:00
2015-02-17 14:34:52 -08:00
2015-02-16 17:56:03 -08:00
2015-03-02 00:19:30 -05:00
2015-02-13 21:21:41 -08:00
2015-01-22 15:10:56 +01:00
2015-03-11 21:55:28 -04:00
2015-03-04 00:26:06 -05:00
2015-02-13 21:21:35 -08:00
2015-02-28 15:10:39 -05:00