diff options
author | Paolo Abeni <pabeni@redhat.com> | 2017-10-19 10:31:43 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-21 04:23:38 +0300 |
commit | b65f164d37cf6d4aac59b0e13c2e5c4cfe293fd2 (patch) | |
tree | 906a4344f82a0e351af5d783bee4f60f02febe8b /include/trace/events/fib6.h | |
parent | f730cc9fee2b47c22964b4843a41d723f436b62a (diff) | |
download | linux-b65f164d37cf6d4aac59b0e13c2e5c4cfe293fd2.tar.xz |
ipv6: let trace_fib6_table_lookup() dereference the fib table
The perf traces for ipv6 routing code show a relevant cost around
trace_fib6_table_lookup(), even if no trace is enabled. This is
due to the fib6_table de-referencing currently performed by the
caller.
Let's the tracing code pay this overhead, passing to the trace
helper the table pointer. This gives small but measurable
performance improvement under UDP flood.
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Acked-by: David Ahern <dsa@cumulusnetworks.com>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/trace/events/fib6.h')
-rw-r--r-- | include/trace/events/fib6.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/trace/events/fib6.h b/include/trace/events/fib6.h index d60096cddb2a..b34bed17abc7 100644 --- a/include/trace/events/fib6.h +++ b/include/trace/events/fib6.h @@ -12,9 +12,9 @@ TRACE_EVENT(fib6_table_lookup, TP_PROTO(const struct net *net, const struct rt6_info *rt, - u32 tb_id, const struct flowi6 *flp), + struct fib6_table *table, const struct flowi6 *flp), - TP_ARGS(net, rt, tb_id, flp), + TP_ARGS(net, rt, table, flp), TP_STRUCT__entry( __field( u32, tb_id ) @@ -34,7 +34,7 @@ TRACE_EVENT(fib6_table_lookup, TP_fast_assign( struct in6_addr *in6; - __entry->tb_id = tb_id; + __entry->tb_id = table->tb6_id; __entry->oif = flp->flowi6_oif; __entry->iif = flp->flowi6_iif; __entry->tos = ip6_tclass(flp->flowlabel); |