lkml.org 
[lkml]   [2021]   [Dec]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 net-next 1/3] net: skb: introduce kfree_skb_with_reason()
On Fri, 31 Dec 2021 14:35:31 +0800 Menglong Dong wrote:
> > > void skb_release_head_state(struct sk_buff *skb);
> > > void kfree_skb(struct sk_buff *skb);
> >
> > Should this be turned into a static inline calling
> > kfree_skb_with_reason() now? BTW you should drop the
> > '_with'.
> >
>
> I thought about it before, but I'm a little afraid that some users may trace
> kfree_skb() with kprobe, making it inline may not be friendly to them?

Hm, there is a bpf sample which does that, but that's probably
not commonly used given there is a tracepoint. If someone is
using a kprobe they can switch to kprobing kfree_skb*reason().

\
 
 \ /
  Last update: 2022-01-01 03:23    [W:0.031 / U:0.176 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site