net: tracepoint napi:napi_poll add work and budget
authorJesper Dangaard Brouer <brouer@redhat.com>
Thu, 7 Jul 2016 16:01:32 +0000 (18:01 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 9 Jul 2016 22:05:02 +0000 (18:05 -0400)
commit1db19db7f5ff4ddd3b1b6dd2092a87298ee5bd0b
treeb5f5b949245c9ff457db3fc5df523a3028351922
parent89141e1c61c5390015285ab202a6f2a9a693e754
net: tracepoint napi:napi_poll add work and budget

An important information for the napi_poll tracepoint is knowing
the work done (packets processed) by the napi_poll() call. Add
both the work done and budget, as they are related.

Handle trace_napi_poll() param change in dropwatch/drop_monitor
and in python perf script netdev-times.py in backward compat way,
as python fortunately supports optional parameter handling.

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/trace/events/napi.h
net/core/dev.c
net/core/drop_monitor.c
net/core/netpoll.c
tools/perf/scripts/python/netdev-times.py