Re: Profiling execution time for __alloc_pages_nodemask

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>> Actually, I want to record the arguments for the memory allocator and
>> filter out the calls I don't need (which are creating noise).
>> For instance, I'm only interested in particular order and flags.

>BPF can do so too. You can either attach to kprobe or tracepoint, then
>filter out the calls by the function's parameters or tracepoint's
>fields.

Thanks Yang for the suggestion, I'll try the BPF. Anyway my problem
was solved by the filter in custom tracepoints (for instance,
tracing/events/kmem/filter).

Also, I used trace_*_enabled() to first check if tracepoint is enabled
and take ktime_get() only after that. This solved my initial issue.

Thanks David, Yang and the Linux community for helping me identify my
issue and solve it.

Best Regards,
Shivank




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux