Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 211809
b: refs/heads/master
c: 3e4b10d
h: refs/heads/master
i:
  211807: d82fb09
v: v3
  • Loading branch information
Neil Horman authored and Frederic Weisbecker committed Sep 7, 2010
1 parent d435f60 commit 3347567
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2bf2160d8805de64308e2e7c3cd97813cb58ed2f
refs/heads/master: 3e4b10d7a4d2a78af64f8096dc7cdb3bebd65adb
25 changes: 23 additions & 2 deletions trunk/include/trace/events/napi.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,31 @@

#include <linux/netdevice.h>
#include <linux/tracepoint.h>
#include <linux/ftrace.h>

#define NO_DEV "(no_device)"

TRACE_EVENT(napi_poll,

DECLARE_TRACE(napi_poll,
TP_PROTO(struct napi_struct *napi),
TP_ARGS(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))
);

#undef NO_DEV

#endif /* _TRACE_NAPI_H_ */

Expand Down

0 comments on commit 3347567

Please sign in to comment.