summaryrefslogtreecommitdiff
path: root/include/trace
diff options
context:
space:
mode:
authorJesper Dangaard Brouer <brouer@redhat.com>2016-07-15 21:55:20 (GMT)
committerDavid S. Miller <davem@davemloft.net>2016-07-15 22:55:01 (GMT)
commit02a198777e646a12a8aabae5639f1d33d81d79ef (patch)
tree3f85fbbd6bd4fbfaa32fc07180c6f0ba43c7996c /include/trace
parent362899b8725b35e32802882c67f99cbf42bce2af (diff)
downloadlinux-02a198777e646a12a8aabae5639f1d33d81d79ef.tar.xz
net: fixup for tracepoint napi:napi_poll
The recent change to tracepoint napi:napi_poll changed the order of the parameters that perf scripts sees, the printk was correct. The problem was that the new parameters (work and budget) were pushed in front of dev_name. The new parameters obviously need to be appended to keep backward compatible. Fixes: 1db19db7f5ff ("net: tracepoint napi:napi_poll add work and budget") Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/trace')
-rw-r--r--include/trace/events/napi.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/trace/events/napi.h b/include/trace/events/napi.h
index 118ed77..0b9e513 100644
--- a/include/trace/events/napi.h
+++ b/include/trace/events/napi.h
@@ -18,16 +18,16 @@ TRACE_EVENT(napi_poll,
TP_STRUCT__entry(
__field( struct napi_struct *, napi)
+ __string( dev_name, napi->dev ? napi->dev->name : NO_DEV)
__field( int, work)
__field( int, budget)
- __string( dev_name, napi->dev ? napi->dev->name : NO_DEV)
),
TP_fast_assign(
__entry->napi = napi;
+ __assign_str(dev_name, napi->dev ? napi->dev->name : NO_DEV);
__entry->work = work;
__entry->budget = budget;
- __assign_str(dev_name, napi->dev ? napi->dev->name : NO_DEV);
),
TP_printk("napi poll on napi struct %p for device %s work %d budget %d",