Re: [PATCH net-next] bpf: introduce bpf_get_current_task() helper

2016-07-08 Thread David Miller
From: Alexei Starovoitov Date: Wed, 6 Jul 2016 22:38:36 -0700 > over time there were multiple requests to access different data > structures and fields of task_struct current, so finally add > the helper to access 'current' as-is. Tracing bpf programs will do > the rest of walking the pointers vi

[PATCH net-next] bpf: introduce bpf_get_current_task() helper

2016-07-06 Thread Alexei Starovoitov
over time there were multiple requests to access different data structures and fields of task_struct current, so finally add the helper to access 'current' as-is. Tracing bpf programs will do the rest of walking the pointers via bpf_probe_read(). Note that current can be null and bpf program has to