lkml.org 
[lkml]   [2020]   [Apr]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[RFC PATCH 5/9] sched: export-GPL task_prio
Date
Exporting the task_prio() symbol to GPL modules is useful for kernel
tracers implemented as kernel modules. It exports information which is
already available through /proc in a way which allows it to be sampled
by kernel tracers with low overhead.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
---
kernel/sched/core.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index a2694ba82874..f87cffef317a 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -4629,6 +4629,7 @@ int task_prio(const struct task_struct *p)
{
return p->prio - MAX_RT_PRIO;
}
+EXPORT_SYMBOL_GPL(task_prio);

/**
* idle_cpu - is a given CPU idle currently?
--
2.17.1
\
 
 \ /
  Last update: 2020-04-09 21:37    [W:0.070 / U:1.132 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site