#undef TRACE_SYSTEM
#define TRACE_SYSTEM raw_syscalls
#define TRACE_INCLUDE_FILE syscalls

#if !defined(_TRACE_EVENTS_SYSCALLS_H) || defined(TRACE_HEADER_MULTI_READ)
#define _TRACE_EVENTS_SYSCALLS_H

#include <linux/tracepoint.h>

#include <asm/ptrace.h>
#include <asm/syscall.h>


#ifdef CONFIG_HAVE_SYSCALL_TRACEPOINTS

TRACE_EVENT_FN(sys_enter,

	TP_PROTO(struct pt_regs *regs, long id),

	TP_ARGS(regs, id),

	TP_STRUCT__entry(
		__field(	long,		id		)
		__array(	unsigned long,	args,	6	)
	),

	TP_fast_assign(
		__entry->id	= id;
		syscall_get_arguments(current, regs, 0, 6, __entry->args);
	),

	TP_printk("NR %ld (%lx, %lx, %lx, %lx, %lx, %lx)",
		  __entry->id,
		  __entry->args[0], __entry->args[1], __entry->args[2],
		  __entry->args[3], __entry->args[4], __entry->args[5]),

	syscall_regfunc, syscall_unregfunc
);

TRACE_EVENT_FLAGS(sys_enter, TRACE_EVENT_FL_CAP_ANY)

TRACE_EVENT_FN(sys_exit,

	TP_PROTO(struct pt_regs *regs, long ret),

	TP_ARGS(regs, ret),

	TP_STRUCT__entry(
		__field(	long,	id	)
		__field(	long,	ret	)
	),

	TP_fast_assign(
		__entry->id	= syscall_get_nr(current, regs);
		__entry->ret	= ret;
	),

	TP_printk("NR %ld = %ld",
		  __entry->id, __entry->ret),

	syscall_regfunc, syscall_unregfunc
);

TRACE_EVENT_FLAGS(sys_exit, TRACE_EVENT_FL_CAP_ANY)

#endif /* CONFIG_HAVE_SYSCALL_TRACEPOINTS */

#endif /* _TRACE_EVENTS_SYSCALLS_H */

/* This part must be outside protection */
#include <trace/define_trace.h>

ub right'>Tobias Klauser</td></tr></table>
<table class='tabs'><tr><td>
<a href='/cgit.cgi/linux/net-next.git/?h=nds-private-remove'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?h=nds-private-remove&amp;id=a8c9701427987d959fec3f99bb2811d943686b7b'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/net/ieee802154/nl802154.c?h=nds-private-remove'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/net/ieee802154/nl802154.c?h=nds-private-remove&amp;id=a8c9701427987d959fec3f99bb2811d943686b7b'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/net/ieee802154/nl802154.c?h=nds-private-remove&amp;id=a8c9701427987d959fec3f99bb2811d943686b7b'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/net/ieee802154/nl802154.c?h=nds-private-remove&amp;id=a8c9701427987d959fec3f99bb2811d943686b7b'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/net/ieee802154/nl802154.c'>
<input type='hidden' name='h' value='nds-private-remove'/><input type='hidden' name='id' value='a8c9701427987d959fec3f99bb2811d943686b7b'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/log/?h=nds-private-remove&amp;id=a8c9701427987d959fec3f99bb2811d943686b7b'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/net?h=nds-private-remove&amp;id=a8c9701427987d959fec3f99bb2811d943686b7b'>net</a>/<a href='/cgit.cgi/linux/net-next.git/log/net/ieee802154?h=nds-private-remove&amp;id=a8c9701427987d959fec3f99bb2811d943686b7b'>ieee802154</a>/<a href='/cgit.cgi/linux/net-next.git/log/net/ieee802154/nl802154.c?h=nds-private-remove&amp;id=a8c9701427987d959fec3f99bb2811d943686b7b'>nl802154.c</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/cgit.cgi/linux/net-next.git/log/net/ieee802154/nl802154.c?h=nds-private-remove&amp;id=a8c9701427987d959fec3f99bb2811d943686b7b&amp;showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>