aboutsummaryrefslogtreecommitdiffstats
path: root/include/trace
diff options
context:
space:
mode:
authorDavid Ahern <dsa@cumulusnetworks.com>2015-08-31 11:57:12 -0400
committerDavid S. Miller <davem@davemloft.net>2015-08-31 15:42:04 -0400
commitf0fa6e529efbca3b97ab6286dbeb5910e33f6c53 (patch)
tree5575e5005efd837240d5aa3d02661d97afd08c6d /include/trace
parentdbb7ee0e474cc8221de55583f516275693c5b552 (diff)
net: Add tos to validate source tracepoint
TOS is another key aspect of the lookup passed to fib_validate_source. Add it to the tracepoint. Signed-off-by: David Ahern <dsa@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/trace')
-rw-r--r--include/trace/events/fib.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/trace/events/fib.h b/include/trace/events/fib.h
index 4030f75410d7..acd1d22571a2 100644
--- a/include/trace/events/fib.h
+++ b/include/trace/events/fib.h
@@ -83,6 +83,7 @@ TRACE_EVENT(fib_validate_source,
83 __string( name, dev->name ) 83 __string( name, dev->name )
84 __field( int, oif ) 84 __field( int, oif )
85 __field( int, iif ) 85 __field( int, iif )
86 __field( __u8, tos )
86 __array( __u8, src, 4 ) 87 __array( __u8, src, 4 )
87 __array( __u8, dst, 4 ) 88 __array( __u8, dst, 4 )
88 ), 89 ),
@@ -93,6 +94,7 @@ TRACE_EVENT(fib_validate_source,
93 __assign_str(name, dev ? dev->name : "not set"); 94 __assign_str(name, dev ? dev->name : "not set");
94 __entry->oif = flp->flowi4_oif; 95 __entry->oif = flp->flowi4_oif;
95 __entry->iif = flp->flowi4_iif; 96 __entry->iif = flp->flowi4_iif;
97 __entry->tos = flp->flowi4_tos;
96 98
97 p32 = (__be32 *) __entry->src; 99 p32 = (__be32 *) __entry->src;
98 *p32 = flp->saddr; 100 *p32 = flp->saddr;
@@ -101,8 +103,8 @@ TRACE_EVENT(fib_validate_source,
101 *p32 = flp->daddr; 103 *p32 = flp->daddr;
102 ), 104 ),
103 105
104 TP_printk("dev %s oif %d iif %d src %pI4 dst %pI4", 106 TP_printk("dev %s oif %d iif %d tos %d src %pI4 dst %pI4",
105 __get_str(name), __entry->oif, __entry->iif, 107 __get_str(name), __entry->oif, __entry->iif, __entry->tos,
106 __entry->src, __entry->dst) 108 __entry->src, __entry->dst)
107); 109);
108#endif /* _TRACE_FIB_H */ 110#endif /* _TRACE_FIB_H */