btrfs: rename the option to nospace_cache
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / include / trace / events / napi.h
blob8fe1e93f531dd81a8e549689a1b8e9b551231e9e
1 #undef TRACE_SYSTEM
2 #define TRACE_SYSTEM napi
4 #if !defined(_TRACE_NAPI_H) || defined(TRACE_HEADER_MULTI_READ)
5 #define _TRACE_NAPI_H_
7 #include <linux/netdevice.h>
8 #include <linux/tracepoint.h>
9 #include <linux/ftrace.h>
11 #define NO_DEV "(no_device)"
13 TRACE_EVENT(napi_poll,
15 TP_PROTO(struct napi_struct *napi),
17 TP_ARGS(napi),
19 TP_STRUCT__entry(
20 __field( struct napi_struct *, napi)
21 __string( dev_name, napi->dev ? napi->dev->name : NO_DEV)
24 TP_fast_assign(
25 __entry->napi = napi;
26 __assign_str(dev_name, napi->dev ? napi->dev->name : NO_DEV);
29 TP_printk("napi poll on napi struct %p for device %s",
30 __entry->napi, __get_str(dev_name))
33 #undef NO_DEV
35 #endif /* _TRACE_NAPI_H_ */
37 /* This part must be outside protection */
38 #include <trace/define_trace.h>