Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
napi.h File Reference
#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.

Macros

#define TRACE_SYSTEM   napi
 
#define _TRACE_NAPI_H_
 
#define NO_DEV   "(no_device)"
 

Functions

 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)))
 

Macro Definition Documentation

#define _TRACE_NAPI_H_

Definition at line 5 of file napi.h.

#define NO_DEV   "(no_device)"

Definition at line 11 of file napi.h.

#define TRACE_SYSTEM   napi

Definition at line 2 of file napi.h.

Function Documentation

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))   
)