2010-05-05 14:52:31 +00:00
|
|
|
#undef TRACE_SYSTEM
|
|
|
|
#define TRACE_SYSTEM napi
|
|
|
|
|
|
|
|
#if !defined(_TRACE_NAPI_H) || defined(TRACE_HEADER_MULTI_READ)
|
2009-05-21 07:36:08 +00:00
|
|
|
#define _TRACE_NAPI_H_
|
|
|
|
|
|
|
|
#include <linux/netdevice.h>
|
|
|
|
#include <linux/tracepoint.h>
|
2010-08-23 09:43:51 +00:00
|
|
|
#include <linux/ftrace.h>
|
|
|
|
|
|
|
|
#define NO_DEV "(no_device)"
|
|
|
|
|
|
|
|
TRACE_EVENT(napi_poll,
|
2009-05-21 07:36:08 +00:00
|
|
|
|
|
|
|
TP_PROTO(struct napi_struct *napi),
|
2010-08-23 09:43:51 +00:00
|
|
|
|
|
|
|
TP_ARGS(napi),
|
|
|
|
|
|
|
|
TP_STRUCT__entry(
|
|
|
|
__field( struct napi_struct *, napi)
|
|
|
|
__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);
|
|
|
|
),
|
|
|
|
|
|
|
|
TP_printk("napi poll on napi struct %p for device %s",
|
|
|
|
__entry->napi, __get_str(dev_name))
|
|
|
|
);
|
|
|
|
|
|
|
|
#undef NO_DEV
|
2009-05-21 07:36:08 +00:00
|
|
|
|
2010-05-05 14:52:31 +00:00
|
|
|
#endif /* _TRACE_NAPI_H_ */
|
|
|
|
|
|
|
|
/* This part must be outside protection */
|
|
|
|
#include <trace/define_trace.h>
|