.channelName= LTT_CHANNEL_NET,\
.eventName= LTT_EVENT_DEV_RECEIVE,\
.fields= FIELD_ARRAY(LTT_FIELD_SKB, LTT_FIELD_PROTOCOL),\
- }, {\
- .channelName= LTT_CHANNEL_NET,\
- .eventName= LTT_EVENT_PKFREE_SKB,\
- .fields= FIELD_ARRAY(LTT_FIELD_SKB),\
}, {\
.channelName= LTT_CHANNEL_NET,\
.eventName= LTT_EVENT_TCPV4_RCV,\
LTT_EVENT_DEV_XMIT= g_quark_from_static_string("dev_xmit");
LTT_EVENT_DEV_RECEIVE= g_quark_from_static_string("dev_receive");
- LTT_EVENT_PKFREE_SKB= g_quark_from_static_string("pkfree_skb");
LTT_EVENT_TCPV4_RCV= g_quark_from_static_string("tcpv4_rcv");
LTT_EVENT_NETWORK_IPV4_INTERFACE=
g_quark_from_static_string("network_ipv4_interface");
lttv_trace_get_hook_field(traceHook, 0));
inE->packetKey= NULL;
- g_hash_table_insert(processingData->pendingRecv[traceNum],
+ g_hash_table_replace(processingData->pendingRecv[traceNum],
inE->skb, inE);
g_debug("Adding inE %p for skb %p to pendingRecv\n", inE, inE->skb);
g_debug("Input event %p for skb %p done\n", inE, skb);
}
}
- else if (info->name == LTT_EVENT_PKFREE_SKB)
- {
- gboolean result;
- void* skb;
-
- // Search pendingRecv for an event with the same skb
- skb= (void*) (long) ltt_event_get_long_unsigned(event,
- lttv_trace_get_hook_field(traceHook, 0));
-
- result= g_hash_table_remove(processingData->pendingRecv[traceNum],
- skb);
- if (result == FALSE)
- {
- g_debug("No matching pending receive event found, \"shaddow"
- "skb\" %p\n", skb);
- }
- else
- {
- g_debug("Non-TCP skb %p\n", skb);
- }
- }
else if (info->name == LTT_EVENT_NETWORK_IPV4_INTERFACE)
{
char* name;