--- zzzz-none-000/linux-2.6.19.2/include/linux/skbuff.h 2007-01-10 19:10:37.000000000 +0000 +++ davinci-8020-5505/linux-2.6.19.2/include/linux/skbuff.h 2008-05-19 15:31:52.000000000 +0000 @@ -310,6 +310,10 @@ __u32 secmark; #endif + /*--------------------------------------------------------------------------------------*\ + \*--------------------------------------------------------------------------------------*/ + void *destructor_info; + unsigned long uniq_id; /* These elements must be at the end, see alloc_skb() for details. */ unsigned int truesize; @@ -372,7 +376,7 @@ static inline void skb_truesize_check(struct sk_buff *skb) { - if (unlikely((int)skb->truesize < sizeof(struct sk_buff) + skb->len)) + if (unlikely(skb->truesize < sizeof(struct sk_buff) + skb->len)) skb_truesize_bug(skb); } @@ -402,6 +406,15 @@ extern unsigned int skb_find_text(struct sk_buff *skb, unsigned int from, unsigned int to, struct ts_config *config, struct ts_state *state); +#ifdef CONFIG_AVM_SIMPLE_PROFILING +# include +# define skb_trace(skb, where) \ + do { \ + avm_simple_profiling_skb((unsigned int)__builtin_return_address(0), where, skb); \ + } while (0) +#else +# define skb_trace(skb, where) do { } while (0) +#endif /* Internal */ #define skb_shinfo(SKB) ((struct skb_shared_info *)((SKB)->end))