aboutsummaryrefslogtreecommitdiff
path: root/include/trace/events/net_probe_common.h
AgeCommit message (Collapse)AuthorFilesLines
2024-04-03trace: adjust TP_STORE_ADDR_PORTS_SKB() parametersJason Xing1-9/+11
Introducing entry_saddr and entry_daddr parameters in this macro for later use can help us record the reverse 4-tuple by analyzing the 4-tuple of the incoming skb when receiving. Signed-off-by: Jason Xing <[email protected]> Reviewed-by: Eric Dumazet <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
2024-03-29net: port TP_STORE_ADDR_PORTS_SKB macro to be tcp/udp independentBalazs Scheidler1-0/+40
This patch moves TP_STORE_ADDR_PORTS_SKB() to a common header and removes the TCP specific implementation details. Previously the macro assumed the skb passed as an argument is a TCP packet, the implementation now uses an argument to the L4 header and uses that to extract the source/destination ports, which happen to be named the same in "struct tcphdr" and "struct udphdr" Reviewed-by: Jason Xing <[email protected]> Signed-off-by: Balazs Scheidler <[email protected]> Link: https://lore.kernel.org/r/9e306f78260dfbbdc7353ba5f864cc027a409540.1711475011.git.balazs.scheidler@axoflow.com Signed-off-by: Jakub Kicinski <[email protected]>
2024-03-26trace: move to TP_STORE_ADDRS related macro to net_probe_common.hJason Xing1-0/+29
Put the macro into another standalone file for better extension. Some tracepoints can use this common part in the future. Signed-off-by: Jason Xing <[email protected]> Signed-off-by: Paolo Abeni <[email protected]>
2018-01-02net: dccp: Add DCCP sendmsg trace eventMasami Hiramatsu1-0/+44
Add DCCP sendmsg trace event (dccp/dccp_probe) for replacing dccpprobe. User can trace this event via ftrace or perftools. Signed-off-by: Masami Hiramatsu <[email protected]> Signed-off-by: David S. Miller <[email protected]>