Re: [PATCH bpf-next v5 1/3] bpf: implement bpf_send_signal() helper

2019-05-25 Thread Yonghong Song
On 5/24/19 3:37 PM, Daniel Borkmann wrote: > On 05/25/2019 12:20 AM, Yonghong Song wrote: >> On 5/24/19 2:39 PM, Daniel Borkmann wrote: >>> On 05/23/2019 11:47 PM, Yonghong Song wrote: This patch tries to solve the following specific use case. Currently, bpf program can already col

Re: [PATCH bpf-next v5 1/3] bpf: implement bpf_send_signal() helper

2019-05-24 Thread Daniel Borkmann
On 05/25/2019 12:23 AM, Yonghong Song wrote: > On 5/24/19 2:59 PM, Daniel Borkmann wrote: >> On 05/24/2019 11:39 PM, Daniel Borkmann wrote: >>> On 05/23/2019 11:47 PM, Yonghong Song wrote: This patch tries to solve the following specific use case. Currently, bpf program can already c

Re: [PATCH bpf-next v5 1/3] bpf: implement bpf_send_signal() helper

2019-05-24 Thread Daniel Borkmann
On 05/25/2019 12:20 AM, Yonghong Song wrote: > On 5/24/19 2:39 PM, Daniel Borkmann wrote: >> On 05/23/2019 11:47 PM, Yonghong Song wrote: >>> This patch tries to solve the following specific use case. >>> >>> Currently, bpf program can already collect stack traces >>> through kernel function get_pe

Re: [PATCH bpf-next v5 1/3] bpf: implement bpf_send_signal() helper

2019-05-24 Thread Yonghong Song
On 5/24/19 2:59 PM, Daniel Borkmann wrote: > On 05/24/2019 11:39 PM, Daniel Borkmann wrote: >> On 05/23/2019 11:47 PM, Yonghong Song wrote: >>> This patch tries to solve the following specific use case. >>> >>> Currently, bpf program can already collect stack traces >>> through kernel function ge

Re: [PATCH bpf-next v5 1/3] bpf: implement bpf_send_signal() helper

2019-05-24 Thread Yonghong Song
On 5/24/19 2:39 PM, Daniel Borkmann wrote: > On 05/23/2019 11:47 PM, Yonghong Song wrote: >> This patch tries to solve the following specific use case. >> >> Currently, bpf program can already collect stack traces >> through kernel function get_perf_callchain() >> when certain events happens (e.g

Re: [PATCH bpf-next v5 1/3] bpf: implement bpf_send_signal() helper

2019-05-24 Thread Daniel Borkmann
On 05/24/2019 11:39 PM, Daniel Borkmann wrote: > On 05/23/2019 11:47 PM, Yonghong Song wrote: >> This patch tries to solve the following specific use case. >> >> Currently, bpf program can already collect stack traces >> through kernel function get_perf_callchain() >> when certain events happens (e

Re: [PATCH bpf-next v5 1/3] bpf: implement bpf_send_signal() helper

2019-05-24 Thread Daniel Borkmann
On 05/23/2019 11:47 PM, Yonghong Song wrote: > This patch tries to solve the following specific use case. > > Currently, bpf program can already collect stack traces > through kernel function get_perf_callchain() > when certain events happens (e.g., cache miss counter or > cpu clock counter overfl

[PATCH bpf-next v5 1/3] bpf: implement bpf_send_signal() helper

2019-05-23 Thread Yonghong Song
This patch tries to solve the following specific use case. Currently, bpf program can already collect stack traces through kernel function get_perf_callchain() when certain events happens (e.g., cache miss counter or cpu clock counter overflows). But such stack traces are not enough for jitted pro