Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1251268
| From | xiakaixu <xiakaixu@huawei.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH V4 1/1] bpf: control events stored in PERF_EVENT_ARRAY maps trace data output when perf sampling |
| Date | 2015-10-20 04:40 +0200 |
| Message-ID | <qlv0e-70J-3@gated-at.bofh.it> (permalink) |
| References | <qlg1c-1Jm-17@gated-at.bofh.it> <qlg1c-1Jm-23@gated-at.bofh.it> <qluGS-6D5-19@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
δΊ 2015/10/20 10:14, Alexei Starovoitov ει:
> On 10/19/15 3:37 AM, Kaixu Xia wrote:
>> +/* flags for PERF_EVENT_ARRAY maps*/
>> +enum {
>> + BPF_EVENT_CTL_BIT_CUR = 0,
>> + BPF_EVENT_CTL_BIT_ALL = 1,
>> + __NR_BPF_EVENT_CTL_BITS,
>> +};
>> +
>> +#define BPF_CTL_BIT_FLAG_MASK \
>> + ((1ULL << __NR_BPF_EVENT_CTL_BITS) - 1)
>> +#define BPF_CTL_BIT_DUMP_CUR \
>> + (1ULL << BPF_EVENT_CTL_BIT_CUR)
>> +#define BPF_CTL_BIT_DUMP_ALL \
>> + (1ULL << BPF_EVENT_CTL_BIT_ALL)
>> +
>
> the above shouldn't be part of uapi header. It can stay in bpf_trace.c
> Just document these bits next to helper similar to skb_store_bytes()
>
> The rest looks ok.
> It still needs an ack from Peter for perf_event bits
Thanks for your comments!
This part will be moved to bpf_trace.c in next version.
>
>
> .
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH V4 0/1] bpf: control events stored in PERF_EVENT_ARRAY maps trace data output when perf sampling Kaixu Xia <xiakaixu@huawei.com> - 2015-10-19 12:40 +0200
[PATCH V4 1/1] bpf: control events stored in PERF_EVENT_ARRAY maps trace data output when perf sampling Kaixu Xia <xiakaixu@huawei.com> - 2015-10-19 12:40 +0200
Re: [PATCH V4 1/1] bpf: control events stored in PERF_EVENT_ARRAY maps trace data output when perf sampling Alexei Starovoitov <ast@plumgrid.com> - 2015-10-20 04:20 +0200
Re: [PATCH V4 1/1] bpf: control events stored in PERF_EVENT_ARRAY maps trace data output when perf sampling xiakaixu <xiakaixu@huawei.com> - 2015-10-20 04:40 +0200
csiph-web