Re: [PATCH tip 0/3] Improvements of scheduler related Tracepoints

2017-12-15 Thread Teng Qin
On 12/14/17, 23:40, "Peter Zijlstra" wrote: > On Thu, Dec 14, 2017 at 07:16:00PM -0800, Alexei Starovoitov wrote: > > On 12/14/17 12:49 PM, Peter Zijlstra wrote: > > > On Thu, Dec 14, 2017 at 12:20:41PM -0800, Teng Qin wrote: > > > > This set of com

[PATCH tip 2/3] Improve sched_process_fork Tracepoint

2017-12-14 Thread Teng Qin
n the Tracepoint's struct. BPF programs can read task information via task struct pointer. Exposing these pointers explicitly gives BPF programs an easy and reliable way of using the Tracepoint. Signed-off-by: Teng Qin --- include/trace/events/sched.h | 11 +-- kernel/fork.c

[PATCH tip 1/3] Improve sched_switch Tracepoint

2017-12-14 Thread Teng Qin
ommit also exposes pointers of the previous and next task_struct in the Tracepoint's struct. BPF programs can read task information via task struct pointer. Exposing these pointers explicitly gives BPF programs an easy and reliable way of using the Tracepoint. Signed-off-by: Teng Qin --- inclu

[PATCH tip 0/3] Improvements of scheduler related Tracepoints

2017-12-14 Thread Teng Qin
reliable. Teng Qin (3): Improve sched_switch Tracepoint Improve sched_process_fork Tracepoint Improve sched_process_exit Tracepoint include/trace/events/sched.h | 54 kernel/exit.c| 2 +- kernel/fork.c| 2 +- 3

[PATCH tip 3/3] Improve sched_process_exit Tracepoint

2017-12-14 Thread Teng Qin
m can read task information via task struct pointer. Exposing the pointer explicitly gives BPF programs an easy and reliable way of using the Tracepoint. Signed-off-by: Teng Qin --- include/trace/events/sched.h | 37 + kernel/exit.c| 2 +- 2

Re: [PATCH net-next] bpf: update perf event helper function signature and documentation

2017-05-22 Thread Teng Qin
On 5/22/17, 20:08, "David Miller" wrote: From: Teng Qin Date: Tue, 23 May 2017 00:39:34 + > diff --git a/samples/bpf/bpf_helpers.h b/samples/bpf/bpf_helpers.h > index 9a9c95f..a94ce42 100644 > --- a/samples/bpf/bpf_helpers.h > +++ b/sam

[PATCH net-next] bpf: update perf event helper function signature and documentation

2017-05-22 Thread Teng Qin
From: Teng Qin This commit updates function signature of the bpf_perf_event_output and bpf_perf_event_read helpers to match their implementation. Also updates their documentation in the header files. Signed-off-by: Teng Qin Acked-by: Alexei Starovoitov --- include/uapi/linux/bpf.h | 11