2015-12-02 08:00:58 +07:00
|
|
|
#ifndef TRACEPOINT_DEFS_H
|
|
|
|
#define TRACEPOINT_DEFS_H 1
|
|
|
|
|
|
|
|
/*
|
|
|
|
* File can be included directly by headers who only want to access
|
2016-03-16 04:55:42 +07:00
|
|
|
* tracepoint->key to guard out of line trace calls, or the definition of
|
|
|
|
* trace_print_flags{_u64}. Otherwise linux/tracepoint.h should be used.
|
2015-12-02 08:00:58 +07:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/atomic.h>
|
|
|
|
#include <linux/static_key.h>
|
|
|
|
|
2016-03-16 04:55:42 +07:00
|
|
|
struct trace_print_flags {
|
|
|
|
unsigned long mask;
|
|
|
|
const char *name;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct trace_print_flags_u64 {
|
|
|
|
unsigned long long mask;
|
|
|
|
const char *name;
|
|
|
|
};
|
|
|
|
|
2015-12-02 08:00:58 +07:00
|
|
|
struct tracepoint_func {
|
|
|
|
void *func;
|
|
|
|
void *data;
|
|
|
|
int prio;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct tracepoint {
|
|
|
|
const char *name; /* Tracepoint name */
|
|
|
|
struct static_key key;
|
2016-11-29 01:03:21 +07:00
|
|
|
int (*regfunc)(void);
|
2015-12-02 08:00:58 +07:00
|
|
|
void (*unregfunc)(void);
|
|
|
|
struct tracepoint_func __rcu *funcs;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|