projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
syscall tracing: sys_getcpu
[lttng-modules.git]
/
wrapper
/
ftrace.h
diff --git
a/wrapper/ftrace.h
b/wrapper/ftrace.h
index 4401469251a27205e0bdfc8bff2292818019c48f..0f15ee4a31daca2942a28ea9d864ebf4255c98c5 100644
(file)
--- a/
wrapper/ftrace.h
+++ b/
wrapper/ftrace.h
@@
-1,5
+1,5
@@
-#ifndef _LTT_WRAPPER_FTRACE_H
-#define _LTT_WRAPPER_FTRACE_H
+#ifndef _LTT
NG
_WRAPPER_FTRACE_H
+#define _LTT
NG
_WRAPPER_FTRACE_H
/*
* Copyright (C) 2011 Mathieu Desnoyers (mathieu.desnoyers@efficios.com)
/*
* Copyright (C) 2011 Mathieu Desnoyers (mathieu.desnoyers@efficios.com)
@@
-16,6
+16,7
@@
#ifdef CONFIG_KALLSYMS
#include <linux/kallsyms.h>
#ifdef CONFIG_KALLSYMS
#include <linux/kallsyms.h>
+#include "kallsyms.h"
static inline
int wrapper_register_ftrace_function_probe(char *glob,
static inline
int wrapper_register_ftrace_function_probe(char *glob,
@@
-24,7
+25,7
@@
int wrapper_register_ftrace_function_probe(char *glob,
int (*register_ftrace_function_probe_sym)(char *glob,
struct ftrace_probe_ops *ops, void *data);
int (*register_ftrace_function_probe_sym)(char *glob,
struct ftrace_probe_ops *ops, void *data);
- register_ftrace_function_probe_sym = (void *) kallsyms_lookup_
name("register_ftrace_function_probe_sym
");
+ register_ftrace_function_probe_sym = (void *) kallsyms_lookup_
funcptr("register_ftrace_function_probe
");
if (register_ftrace_function_probe_sym) {
return register_ftrace_function_probe_sym(glob, ops, data);
} else {
if (register_ftrace_function_probe_sym) {
return register_ftrace_function_probe_sym(glob, ops, data);
} else {
@@
-40,7
+41,7
@@
void wrapper_unregister_ftrace_function_probe(char *glob,
void (*unregister_ftrace_function_probe_sym)(char *glob,
struct ftrace_probe_ops *ops, void *data);
void (*unregister_ftrace_function_probe_sym)(char *glob,
struct ftrace_probe_ops *ops, void *data);
- unregister_ftrace_function_probe_sym = (void *) kallsyms_lookup_
name("unregister_ftrace_function_probe_sym
");
+ unregister_ftrace_function_probe_sym = (void *) kallsyms_lookup_
funcptr("unregister_ftrace_function_probe
");
if (unregister_ftrace_function_probe_sym) {
unregister_ftrace_function_probe_sym(glob, ops, data);
} else {
if (unregister_ftrace_function_probe_sym) {
unregister_ftrace_function_probe_sym(glob, ops, data);
} else {
@@
-53,18
+54,17
@@
void wrapper_unregister_ftrace_function_probe(char *glob,
static inline
int wrapper_register_ftrace_function_probe(char *glob,
static inline
int wrapper_register_ftrace_function_probe(char *glob,
- struct ftrace_probe_ops *ops, void *data);
-
+ struct ftrace_probe_ops *ops, void *data)
{
{
- return
unregister_ftrace_function_probe(
);
+ return
register_ftrace_function_probe(glob, ops, data
);
}
static inline
void wrapper_unregister_ftrace_function_probe(char *glob,
}
static inline
void wrapper_unregister_ftrace_function_probe(char *glob,
- struct ftrace_probe_ops *ops, void *data)
;
+ struct ftrace_probe_ops *ops, void *data)
{
{
- return unregister_ftrace_function_probe();
+ return unregister_ftrace_function_probe(
glob, ops, data
);
}
#endif
}
#endif
-#endif /* _LTT_WRAPPER_FTRACE_H */
+#endif /* _LTT
NG
_WRAPPER_FTRACE_H */
This page took
0.023759 seconds
and
4
git commands to generate.