<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/kernel/sched_debug.c, branch v2.6.28</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v2.6.28</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v2.6.28'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2008-11-16T07:07:15Z</updated>
<entry>
<title>sched: fix kernel warning on /proc/sched_debug access</title>
<updated>2008-11-16T07:07:15Z</updated>
<author>
<name>Ingo Molnar</name>
<email>mingo@elte.hu</email>
</author>
<published>2008-11-16T07:07:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=29d7b90c15035741d15421b36000509212b3e135'/>
<id>urn:sha1:29d7b90c15035741d15421b36000509212b3e135</id>
<content type='text'>
Luis Henriques reported that with CONFIG_PREEMPT=y + CONFIG_PREEMPT_DEBUG=y +
CONFIG_SCHED_DEBUG=y + CONFIG_LATENCYTOP=y enabled, the following warning
triggers when using latencytop:

&gt; [  775.663239] BUG: using smp_processor_id() in preemptible [00000000] code: latencytop/6585
&gt; [  775.663303] caller is native_sched_clock+0x3a/0x80
&gt; [  775.663314] Pid: 6585, comm: latencytop Tainted: G        W 2.6.28-rc4-00355-g9c7c354 #1
&gt; [  775.663322] Call Trace:
&gt; [  775.663343]  [&lt;ffffffff803a94e4&gt;] debug_smp_processor_id+0xe4/0xf0
&gt; [  775.663356]  [&lt;ffffffff80213f7a&gt;] native_sched_clock+0x3a/0x80
&gt; [  775.663368]  [&lt;ffffffff80213e19&gt;] sched_clock+0x9/0x10
&gt; [  775.663381]  [&lt;ffffffff8024550d&gt;] proc_sched_show_task+0x8bd/0x10e0
&gt; [  775.663395]  [&lt;ffffffff8034466e&gt;] sched_show+0x3e/0x80
&gt; [  775.663408]  [&lt;ffffffff8031039b&gt;] seq_read+0xdb/0x350
&gt; [  775.663421]  [&lt;ffffffff80368776&gt;] ? security_file_permission+0x16/0x20
&gt; [  775.663435]  [&lt;ffffffff802f4198&gt;] vfs_read+0xc8/0x170
&gt; [  775.663447]  [&lt;ffffffff802f4335&gt;] sys_read+0x55/0x90
&gt; [  775.663460]  [&lt;ffffffff8020c67a&gt;] system_call_fastpath+0x16/0x1b
&gt; ...

This breakage was caused by me via:

  7cbaef9: sched: optimize sched_clock() a bit

Change the calls to cpu_clock().

Reported-by: Luis Henriques &lt;henrix@sapo.pt&gt;
</content>
</entry>
<entry>
<title>sched: clean up debug info</title>
<updated>2008-11-10T09:51:51Z</updated>
<author>
<name>Peter Zijlstra</name>
<email>a.p.zijlstra@chello.nl</email>
</author>
<published>2008-11-10T09:46:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=5ac5c4d604bf894ef672a7971d03fefdc7ea7e49'/>
<id>urn:sha1:5ac5c4d604bf894ef672a7971d03fefdc7ea7e49</id>
<content type='text'>
Impact: clean up and fix debug info printout

While looking over the sched_debug code I noticed that we printed the rq
schedstats for every cfs_rq, ammend this.

Also change nr_spead_over into an int, and fix a little buglet in
min_vruntime printing.

Signed-off-by: Peter Zijlstra &lt;a.p.zijlstra@chello.nl&gt;
Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
</content>
</entry>
<entry>
<title>sched: change sched_debug's mode to 0444</title>
<updated>2008-10-30T10:37:57Z</updated>
<author>
<name>Li Zefan</name>
<email>lizf@cn.fujitsu.com</email>
</author>
<published>2008-10-30T07:23:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=a9cf4ddb3b2ce03c3027929b22a920aeff933009'/>
<id>urn:sha1:a9cf4ddb3b2ce03c3027929b22a920aeff933009</id>
<content type='text'>
Impact: change /proc/sched/debug from rw-r--r-- to r--r--r--

/proc/sched_debug is read-only.

Signed-off-by: Li Zefan &lt;lizf@cn.fujitsu.com&gt;
Acked-by: Peter Zijlstra &lt;a.p.zijlstra@chello.nl&gt;
Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
</content>
</entry>
<entry>
<title>[PATCH] signal, procfs: some lock_task_sighand() users do not need rcu_read_lock()</title>
<updated>2008-10-10T00:18:57Z</updated>
<author>
<name>Lai Jiangshan</name>
<email>laijs@cn.fujitsu.com</email>
</author>
<published>2008-10-04T20:51:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=a6bebbc87a8c16eabb6bd5c6fd2d994be0236fba'/>
<id>urn:sha1:a6bebbc87a8c16eabb6bd5c6fd2d994be0236fba</id>
<content type='text'>
lock_task_sighand() make sure task-&gt;sighand is being protected,
so we do not need rcu_read_lock().
[ exec() will get task-&gt;sighand-&gt;siglock before change task-&gt;sighand! ]

But code using rcu_read_lock() _just_ to protect lock_task_sighand()
only appear in procfs. (and some code in procfs use lock_task_sighand()
without such redundant protection.)

Other subsystem may put lock_task_sighand() into rcu_read_lock()
critical region, but these rcu_read_lock() are used for protecting
"for_each_process()", "find_task_by_vpid()" etc. , not for protecting
lock_task_sighand().

Signed-off-by: Lai Jiangshan &lt;laijs@cn.fujitsu.com&gt;
[ok from Oleg]
Signed-off-by: Alexey Dobriyan &lt;adobriyan@gmail.com&gt;
</content>
</entry>
<entry>
<title>sched: add full schedstats to /proc/sched_debug</title>
<updated>2008-06-27T12:31:31Z</updated>
<author>
<name>Peter Zijlstra</name>
<email>a.p.zijlstra@chello.nl</email>
</author>
<published>2008-06-27T11:41:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=32df2ee86a580f70f2dbb90cf81f413aa655f838'/>
<id>urn:sha1:32df2ee86a580f70f2dbb90cf81f413aa655f838</id>
<content type='text'>
show all the schedstats in /debug/sched_debug as well.

Signed-off-by: Peter Zijlstra &lt;a.p.zijlstra@chello.nl&gt;
Cc: Srivatsa Vaddagiri &lt;vatsa@linux.vnet.ibm.com&gt;
Cc: Mike Galbraith &lt;efault@gmx.de&gt;
Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
</content>
</entry>
<entry>
<title>sched: revert revert of: fair-group: SMP-nice for group scheduling</title>
<updated>2008-06-27T12:31:29Z</updated>
<author>
<name>Peter Zijlstra</name>
<email>a.p.zijlstra@chello.nl</email>
</author>
<published>2008-06-27T11:41:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=c09595f63bb1909c5dc4dca288f4fe818561b5f3'/>
<id>urn:sha1:c09595f63bb1909c5dc4dca288f4fe818561b5f3</id>
<content type='text'>
Try again..

Initial commit: 18d95a2832c1392a2d63227a7a6d433cb9f2037e
Revert: 6363ca57c76b7b83639ca8c83fc285fa26a7880e

Signed-off-by: Peter Zijlstra &lt;a.p.zijlstra@chello.nl&gt;
Cc: Srivatsa Vaddagiri &lt;vatsa@linux.vnet.ibm.com&gt;
Cc: Mike Galbraith &lt;efault@gmx.de&gt;
Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
</content>
</entry>
<entry>
<title>sched: debug: add some rt debug output</title>
<updated>2008-06-20T08:25:59Z</updated>
<author>
<name>Peter Zijlstra</name>
<email>a.p.zijlstra@chello.nl</email>
</author>
<published>2008-06-19T12:22:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=ada18de2eb76961a4d4847f63291744c9e7beec4'/>
<id>urn:sha1:ada18de2eb76961a4d4847f63291744c9e7beec4</id>
<content type='text'>
Signed-off-by: Peter Zijlstra &lt;a.p.zijlstra@chello.nl&gt;
Cc: "Daniel K." &lt;dk@uw.no&gt;
Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
</content>
</entry>
<entry>
<title>revert ("sched: fair-group: SMP-nice for group scheduling")</title>
<updated>2008-05-29T09:28:57Z</updated>
<author>
<name>Ingo Molnar</name>
<email>mingo@elte.hu</email>
</author>
<published>2008-05-29T09:28:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=6363ca57c76b7b83639ca8c83fc285fa26a7880e'/>
<id>urn:sha1:6363ca57c76b7b83639ca8c83fc285fa26a7880e</id>
<content type='text'>
Yanmin Zhang reported:

Comparing with 2.6.25, volanoMark has big regression with kernel 2.6.26-rc1.
It's about 50% on my 8-core stoakley, 16-core tigerton, and Itanium Montecito.

With bisect, I located the following patch:

| 18d95a2832c1392a2d63227a7a6d433cb9f2037e is first bad commit
| commit 18d95a2832c1392a2d63227a7a6d433cb9f2037e
| Author: Peter Zijlstra &lt;a.p.zijlstra@chello.nl&gt;
| Date:   Sat Apr 19 19:45:00 2008 +0200
|
|     sched: fair-group: SMP-nice for group scheduling

Revert it so that we get v2.6.25 behavior.

Bisected-by: Yanmin Zhang &lt;yanmin_zhang@linux.intel.com&gt;
Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
</content>
</entry>
<entry>
<title>sched: add optional support for CONFIG_HAVE_UNSTABLE_SCHED_CLOCK</title>
<updated>2008-05-05T21:56:18Z</updated>
<author>
<name>Peter Zijlstra</name>
<email>a.p.zijlstra@chello.nl</email>
</author>
<published>2008-05-03T16:29:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=3e51f33fcc7f55e6df25d15b55ed10c8b4da84cd'/>
<id>urn:sha1:3e51f33fcc7f55e6df25d15b55ed10c8b4da84cd</id>
<content type='text'>
this replaces the rq-&gt;clock stuff (and possibly cpu_clock()).

 - architectures that have an 'imperfect' hardware clock can set
   CONFIG_HAVE_UNSTABLE_SCHED_CLOCK

 - the 'jiffie' window might be superfulous when we update tick_gtod
   before the __update_sched_clock() call in sched_clock_tick()

 - cpu_clock() might be implemented as:

     sched_clock_cpu(smp_processor_id())

   if the accuracy proves good enough - how far can TSC drift in a
   single jiffie when considering the filtering and idle hooks?

[ mingo@elte.hu: various fixes and cleanups ]

Signed-off-by: Peter Zijlstra &lt;a.p.zijlstra@chello.nl&gt;
Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
</content>
</entry>
<entry>
<title>rename div64_64 to div64_u64</title>
<updated>2008-05-01T15:03:58Z</updated>
<author>
<name>Roman Zippel</name>
<email>zippel@linux-m68k.org</email>
</author>
<published>2008-05-01T11:34:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=6f6d6a1a6a1336431a6cba60ace9e97c3a496a19'/>
<id>urn:sha1:6f6d6a1a6a1336431a6cba60ace9e97c3a496a19</id>
<content type='text'>
Rename div64_64 to div64_u64 to make it consistent with the other divide
functions, so it clearly includes the type of the divide.  Move its definition
to math64.h as currently no architecture overrides the generic implementation.
 They can still override it of course, but the duplicated declarations are
avoided.

Signed-off-by: Roman Zippel &lt;zippel@linux-m68k.org&gt;
Cc: Avi Kivity &lt;avi@qumranet.com&gt;
Cc: Russell King &lt;rmk@arm.linux.org.uk&gt;
Cc: Geert Uytterhoeven &lt;geert@linux-m68k.org&gt;
Cc: Ralf Baechle &lt;ralf@linux-mips.org&gt;
Cc: David Howells &lt;dhowells@redhat.com&gt;
Cc: Jeff Dike &lt;jdike@addtoit.com&gt;
Cc: Ingo Molnar &lt;mingo@elte.hu&gt;
Cc: "David S. Miller" &lt;davem@davemloft.net&gt;
Cc: Patrick McHardy &lt;kaber@trash.net&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
</feed>
