where's the definition of trace_kfree_skb?

Rawcoder rawcoder at openmailbox.org
Tue Mar 28 09:31:23 EDT 2017


Hello,

On Tuesday 28 March 2017 01:45 PM, Shiyao Ma wrote:
> Hi,
> I saw this function invocation, 
> trace_kfree_skb(skb, __builtin_return_address(0));
> 
> so I grepped the source for "trace_kfree_skb", but I found no where it's defined.
> 
> Where's the definition for it?
> 

It is a tracepoint call.

Tracepoints are defined using DECLARE_TRACE or TRACE_EVENT macros [1].

'git grep "TRACE.*kfree_skb"' gives the desired definition.



[1]: https://www.kernel.org/doc/Documentation/trace/tracepoints.txt


Regards,
rawcoder



More information about the Kernelnewbies mailing list