18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci#undef TRACE_SYSTEM
38c2ecf20Sopenharmony_ci#define TRACE_SYSTEM vsyscall
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci#if !defined(__VSYSCALL_TRACE_H) || defined(TRACE_HEADER_MULTI_READ)
68c2ecf20Sopenharmony_ci#define __VSYSCALL_TRACE_H
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci#include <linux/tracepoint.h>
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ciTRACE_EVENT(emulate_vsyscall,
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci	    TP_PROTO(int nr),
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ci	    TP_ARGS(nr),
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ci	    TP_STRUCT__entry(__field(int, nr)),
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ci	    TP_fast_assign(
198c2ecf20Sopenharmony_ci			   __entry->nr = nr;
208c2ecf20Sopenharmony_ci			   ),
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ci	    TP_printk("nr = %d", __entry->nr)
238c2ecf20Sopenharmony_ci);
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ci#endif
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ci#undef TRACE_INCLUDE_PATH
288c2ecf20Sopenharmony_ci#define TRACE_INCLUDE_PATH ../../arch/x86/entry/vsyscall/
298c2ecf20Sopenharmony_ci#define TRACE_INCLUDE_FILE vsyscall_trace
308c2ecf20Sopenharmony_ci#include <trace/define_trace.h>
31