Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / include / linux / tracepoint-defs.h
blob64ed7064f1fa6510ed8b8611fd1f0d90ad33c6ad
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef TRACEPOINT_DEFS_H
3 #define TRACEPOINT_DEFS_H 1
5 /*
6 * File can be included directly by headers who only want to access
7 * tracepoint->key to guard out of line trace calls, or the definition of
8 * trace_print_flags{_u64}. Otherwise linux/tracepoint.h should be used.
9 */
11 #include <linux/atomic.h>
12 #include <linux/static_key.h>
14 struct trace_print_flags {
15 unsigned long mask;
16 const char *name;
19 struct trace_print_flags_u64 {
20 unsigned long long mask;
21 const char *name;
24 struct tracepoint_func {
25 void *func;
26 void *data;
27 int prio;
30 struct tracepoint {
31 const char *name; /* Tracepoint name */
32 struct static_key key;
33 int (*regfunc)(void);
34 void (*unregfunc)(void);
35 struct tracepoint_func __rcu *funcs;
38 #endif