perf bpf examples: Convert etcsnoop to use bpf_map()
Making the code more compact, end result is the same:
# trace -e /home/acme/git/perf/tools/perf/examples/bpf/etcsnoop.c
0.000 ( ): sed/7385 openat(dfd: CWD, filename: "/etc/ld.so.cache",
flags: RDONLY|CLOEXEC) ...
From: Arnaldo Carvalho de Melo
Making the code more compact, end result is the same:
# trace -e /home/acme/git/perf/tools/perf/examples/bpf/etcsnoop.c
0.000 ( ): sed/7385 openat(dfd: CWD, filename: "/etc/ld.so.cache",
flags: RDONLY|CLOEXEC) ...
2727.723 ( ): cat/7389 op
On Fri, Jul 8, 2016 at 3:46 AM, Wangnan (F) wrote:
>
>
> On 2016/7/8 15:57, Brendan Gregg wrote:
>>
[...]
>> I mean just an -F99 that executes a BPF program on each sample. My
>> most common use for perf is:
>>
>> perf record -F 99 -a -g -- sleep 30
>> perf report (or perf script, for making flame
On 2016/7/8 15:57, Brendan Gregg wrote:
On Thu, Jul 7, 2016 at 9:18 PM, Wangnan (F) wrote:
On 2016/7/8 1:58, Brendan Gregg wrote:
On Thu, Jul 7, 2016 at 10:54 AM, Brendan Gregg
wrote:
On Wed, Jul 6, 2016 at 6:49 PM, Wangnan (F) wrote:
[...]
... Also, has anyone looked into perf samplin
On Thu, Jul 7, 2016 at 9:18 PM, Wangnan (F) wrote:
>
>
> On 2016/7/8 1:58, Brendan Gregg wrote:
>>
>> On Thu, Jul 7, 2016 at 10:54 AM, Brendan Gregg
>> wrote:
>>>
>>> On Wed, Jul 6, 2016 at 6:49 PM, Wangnan (F) wrote:
[...]
>> ... Also, has anyone looked into perf sampling (-F 99) with bpf yet?
On 2016/7/8 1:58, Brendan Gregg wrote:
On Thu, Jul 7, 2016 at 10:54 AM, Brendan Gregg
wrote:
On Wed, Jul 6, 2016 at 6:49 PM, Wangnan (F) wrote:
On 2016/7/7 4:29, Brendan Gregg wrote:
G'Day,
Are perf bpf examples shared anywhere? I've seen many posted to lkml
(by Wang Nan),
6 matches
Mail list logo