diff options
author | Jesper Dangaard Brouer <brouer@redhat.com> | 2016-07-07 18:01:32 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-07-09 18:05:02 -0400 |
commit | 1db19db7f5ff4ddd3b1b6dd2092a87298ee5bd0b (patch) | |
tree | b5f5b949245c9ff457db3fc5df523a3028351922 /net/core/drop_monitor.c | |
parent | 89141e1c61c5390015285ab202a6f2a9a693e754 (diff) | |
download | linux-stable-1db19db7f5ff4ddd3b1b6dd2092a87298ee5bd0b.tar.gz linux-stable-1db19db7f5ff4ddd3b1b6dd2092a87298ee5bd0b.tar.bz2 linux-stable-1db19db7f5ff4ddd3b1b6dd2092a87298ee5bd0b.zip |
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>
Diffstat (limited to 'net/core/drop_monitor.c')
-rw-r--r-- | net/core/drop_monitor.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/core/drop_monitor.c b/net/core/drop_monitor.c index 252e155c837b..d6b3b579560d 100644 --- a/net/core/drop_monitor.c +++ b/net/core/drop_monitor.c @@ -187,7 +187,8 @@ static void trace_kfree_skb_hit(void *ignore, struct sk_buff *skb, void *locatio trace_drop_common(skb, location); } -static void trace_napi_poll_hit(void *ignore, struct napi_struct *napi) +static void trace_napi_poll_hit(void *ignore, struct napi_struct *napi, + int work, int budget) { struct dm_hw_stat_delta *new_stat; |