where's the definition of trace_kfree_skb?

valdis.kletnieks at vt.edu valdis.kletnieks at vt.edu
Tue Mar 28 04:46:17 EDT 2017


On Tue, 28 Mar 2017 16:15:57 +0800, Shiyao Ma said:

> 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.

For some uses, the Linux kernel forms a definition via the preprocessor, by
gluing together several strings.

Try doing 'git grep trace_##'  (or 'grep -r trace_## .' if you don't have a git tree.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 484 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20170328/4d5b1c24/attachment.bin 


More information about the Kernelnewbies mailing list