Add task_prio symbol wrapper
[lttng-modules.git] / wrapper / sched.h
CommitLineData
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
16static inline
17int 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
25static inline
26int wrapper_task_prio(struct task_struct *t)
27{
28 return task_prio(t);
29}
30#endif
31
32#endif /* _LTT_WRAPPER_VMALLOC_H */
This page took 0.024796 seconds and 4 git commands to generate.