mirror of
https://github.com/torvalds/linux.git
synced 2024-12-18 00:53:40 +00:00
02a198777e
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: 1db19db7f5
("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>
44 lines
974 B
C
44 lines
974 B
C
#undef TRACE_SYSTEM
|
|
#define TRACE_SYSTEM napi
|
|
|
|
#if !defined(_TRACE_NAPI_H) || defined(TRACE_HEADER_MULTI_READ)
|
|
#define _TRACE_NAPI_H_
|
|
|
|
#include <linux/netdevice.h>
|
|
#include <linux/tracepoint.h>
|
|
#include <linux/ftrace.h>
|
|
|
|
#define NO_DEV "(no_device)"
|
|
|
|
TRACE_EVENT(napi_poll,
|
|
|
|
TP_PROTO(struct napi_struct *napi, int work, int budget),
|
|
|
|
TP_ARGS(napi, work, budget),
|
|
|
|
TP_STRUCT__entry(
|
|
__field( struct napi_struct *, napi)
|
|
__string( dev_name, napi->dev ? napi->dev->name : NO_DEV)
|
|
__field( int, work)
|
|
__field( int, budget)
|
|
),
|
|
|
|
TP_fast_assign(
|
|
__entry->napi = napi;
|
|
__assign_str(dev_name, napi->dev ? napi->dev->name : NO_DEV);
|
|
__entry->work = work;
|
|
__entry->budget = budget;
|
|
),
|
|
|
|
TP_printk("napi poll on napi struct %p for device %s work %d budget %d",
|
|
__entry->napi, __get_str(dev_name),
|
|
__entry->work, __entry->budget)
|
|
);
|
|
|
|
#undef NO_DEV
|
|
|
|
#endif /* _TRACE_NAPI_H_ */
|
|
|
|
/* This part must be outside protection */
|
|
#include <trace/define_trace.h>
|