δΊ 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,
>> +};
>> +
>> +#defineBPF_CTL_BIT_FLAG_MASK \
>> +((
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,
+};
+
+#defineBPF_CTL_BIT_FLAG_MASK \
+ ((1ULL << __NR_BPF_EVENT_CTL_BITS) - 1)
+#define
This patch adds the flag soft_enable to control the trace data
output process when perf sampling. By setting this flag and
integrating with ebpf, we can control the data output process and
get the samples we are most interested in.
The bpf helper bpf_perf_event_control() can control either the per