blob: e1ee97c713bf23b433e85a881632215331269659 [file] [log] [blame]
Andi Kleenbd2a6342015-12-01 17:00:58 -08001#ifndef TRACEPOINT_DEFS_H
2#define TRACEPOINT_DEFS_H 1
3
4/*
5 * File can be included directly by headers who only want to access
6 * tracepoint->key to guard out of line trace calls. Otherwise
7 * linux/tracepoint.h should be used.
8 */
9
10#include <linux/atomic.h>
11#include <linux/static_key.h>
12
13struct tracepoint_func {
14 void *func;
15 void *data;
16 int prio;
17};
18
19struct tracepoint {
20 const char *name; /* Tracepoint name */
21 struct static_key key;
22 void (*regfunc)(void);
23 void (*unregfunc)(void);
24 struct tracepoint_func __rcu *funcs;
25};
26
27#endif