projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: debian kernel version parsing
[lttng-modules.git]
/
lttng-tracepoint.c
diff --git
a/lttng-tracepoint.c
b/lttng-tracepoint.c
index 13f9c247d440ca3dc7d69e44a995ec8b90f99370..7a50dd281632e7e5df45afb6379ee600bcc7e72e 100644
(file)
--- a/
lttng-tracepoint.c
+++ b/
lttng-tracepoint.c
@@
-20,7
+20,6
@@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <linux/list.h>
#include <linux/mutex.h>
#include <linux/err.h>
#include <linux/notifier.h>
#include <linux/mutex.h>
#include <linux/err.h>
#include <linux/notifier.h>
@@
-29,7
+28,8
@@
#include <linux/jhash.h>
#include <linux/module.h>
#include <linux/jhash.h>
#include <linux/module.h>
-#include "lttng-tracepoint.h"
+#include <lttng-tracepoint.h>
+#include <wrapper/list.h>
/*
* Protect the tracepoint table. lttng_tracepoint_mutex nests within
/*
* Protect the tracepoint table. lttng_tracepoint_mutex nests within
@@
-119,7
+119,7
@@
struct tracepoint_entry *get_tracepoint(const char *name)
u32 hash = jhash(name, strlen(name), 0);
head = &tracepoint_table[hash & (TRACEPOINT_TABLE_SIZE - 1)];
u32 hash = jhash(name, strlen(name), 0);
head = &tracepoint_table[hash & (TRACEPOINT_TABLE_SIZE - 1)];
- hlist_for_each_entry(e, head, hlist) {
+
lttng_
hlist_for_each_entry(e, head, hlist) {
if (!strcmp(name, e->name))
return e;
}
if (!strcmp(name, e->name))
return e;
}
@@
-139,7
+139,7
@@
struct tracepoint_entry *add_tracepoint(const char *name)
u32 hash = jhash(name, name_len - 1, 0);
head = &tracepoint_table[hash & (TRACEPOINT_TABLE_SIZE - 1)];
u32 hash = jhash(name, name_len - 1, 0);
head = &tracepoint_table[hash & (TRACEPOINT_TABLE_SIZE - 1)];
- hlist_for_each_entry(e, head, hlist) {
+
lttng_
hlist_for_each_entry(e, head, hlist) {
if (!strcmp(name, e->name)) {
printk(KERN_NOTICE
"tracepoint %s busy\n", name);
if (!strcmp(name, e->name)) {
printk(KERN_NOTICE
"tracepoint %s busy\n", name);
This page took
0.023992 seconds
and
4
git commands to generate.