#include <linux/netdevice.h>
#include <linux/tracepoint.h>
#include <linux/ftrace.h>
#include <trace/define_trace.h>
Go to the source code of this file.
|
| TRACE_EVENT (napi_poll, TP_PROTO(struct napi_struct *napi), 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))) |
|
Definition at line 5 of file napi.h.
#define NO_DEV "(no_device)" |
#define TRACE_SYSTEM napi |
Definition at line 2 of file napi.h.
TRACE_EVENT |
( |
napi_poll |
, |
|
|
TP_PROTO(struct napi_struct *napi) |
, |
|
|
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)) |
|
|
) |
| |