[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20111202135126.GA20115@Krystal>
Date: Fri, 2 Dec 2011 08:51:26 -0500
From: Mathieu Desnoyers <mathieu.desnoyers@...icios.com>
To: Peter Zijlstra <peterz@...radead.org>
Cc: Greg KH <greg@...ah.com>, devel@...verdev.osuosl.org,
lttng-dev@...ts.lttng.org, Ingo Molnar <mingo@...e.hu>,
linux-kernel@...r.kernel.org, Darren Hart <darren@...art.com>
Subject: Re: [PATCH 09/11] sched: export task_prio to GPL modules
* Peter Zijlstra (peterz@...radead.org) wrote:
> On Thu, 2011-12-01 at 17:36 -0500, Mathieu Desnoyers wrote:
> > So what you are saying is that it is fine to export task_prio to
> > _userspace_, thus making it part of the ABI, but it's not OK to export
> > it to GPL modules ?
>
> that's a SCHED_DEBUG proc file.
Fair point. You'll then notice that /proc/<pid>/stat (18th field)
exports it too, and it's not under SCHED_DEBUG:
ok:/proc/20# cat stat
20 (migration/5) S 2 0 0 0 -1 2216722496 0 0 0 0 0 0 0 0 -100 0 1 0 70 0
0 18446744073709551615 0 0 0 0 0 0 0 2147483647 0 18446744071579371389 0
0 17 5 99 1 0 0 0
(see -100 above)
as defined in Documentation/filesystems/proc.txt:
"Table 1-4: Contents of the stat files (as of 2.6.30-rc7)
[...]
priority priority level"
Thanks,
Mathieu
--
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists