Add task_prio symbol wrapper
[lttng-modules.git] / wrapper / sched.c
CommitLineData
8fefc8a2
MD
1/*
2 * Copyright (C) 2011 Mathieu Desnoyers (mathieu.desnoyers@efficios.com)
3 *
4 * Wrapper around task_prio call.
5 *
6 * Dual LGPL v2.1/GPL v2 license.
7 */
8
9#include <linux/kallsyms.h>
10#include <linux/sched.h>
11
12void (*wrapper_task_prio_sym)(struct task_struct *t);
13
14int wrapper_task_prio_init(void)
15{
16 wrapper_task_prio_sym = (void *) kallsyms_lookup_name("task_prio");
17 if (!wrapper_task_prio_sym) {
18 printk(KERN_WARNING "LTTng: task_prio symbol lookup failed.\n");
19 return -EINVAL;
20 }
21 return 0;
22}
This page took 0.023439 seconds and 4 git commands to generate.