Commit | Line | Data |
---|---|---|
8fefc8a2 MD |
1 | #ifndef _LTT_WRAPPER_VMALLOC_H |
2 | #define _LTT_WRAPPER_VMALLOC_H | |
3 | ||
4 | /* | |
5 | * Copyright (C) 2011 Mathieu Desnoyers (mathieu.desnoyers@efficios.com) | |
6 | * | |
7 | * Wrapper around task_prio call. | |
8 | * | |
9 | * Dual LGPL v2.1/GPL v2 license. | |
10 | */ | |
11 | ||
12 | #ifdef CONFIG_KALLSYMS | |
13 | ||
14 | #include "../ltt-events.h" | |
15 | ||
16 | static inline | |
17 | int wrapper_task_prio(struct task_struct *t) | |
18 | { | |
19 | return wrapper_task_prio_sym(t); | |
20 | } | |
21 | #else | |
22 | ||
23 | #include <linux/sched.h> | |
24 | ||
25 | static inline | |
26 | int wrapper_task_prio(struct task_struct *t) | |
27 | { | |
28 | return task_prio(t); | |
29 | } | |
30 | #endif | |
31 | ||
32 | #endif /* _LTT_WRAPPER_VMALLOC_H */ |