Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1413556 > unrolled thread

[PATCH v2 2/2] sched/debug: always show nr_migrations

Started byJosh Poimboeuf <jpoimboe@redhat.com>
First post2016-06-04 01:00 +0200
Last post2016-06-08 16:30 +0200
Articles 3 — 3 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH v2 2/2] sched/debug: always show nr_migrations Josh Poimboeuf <jpoimboe@redhat.com> - 2016-06-04 01:00 +0200
    Re: [PATCH v2 2/2] sched/debug: always show nr_migrations Mel Gorman <mgorman@techsingularity.net> - 2016-06-07 15:50 +0200
    [tip:sched/core] sched/debug: Always show 'nr_migrations' tip-bot for Josh Poimboeuf <tipbot@zytor.com> - 2016-06-08 16:30 +0200

#1413556 — [PATCH v2 2/2] sched/debug: always show nr_migrations

FromJosh Poimboeuf <jpoimboe@redhat.com>
Date2016-06-04 01:00 +0200
Subject[PATCH v2 2/2] sched/debug: always show nr_migrations
Message-ID<rG6el-KI-1@gated-at.bofh.it>
The nr_migrations field is updated independently of CONFIG_SCHEDSTATS,
so it can be displayed regardless.

Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
---
 kernel/sched/debug.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c
index 0368c39..2a0a999 100644
--- a/kernel/sched/debug.c
+++ b/kernel/sched/debug.c
@@ -879,9 +879,9 @@ void proc_sched_show_task(struct task_struct *p, struct seq_file *m)
 
 	nr_switches = p->nvcsw + p->nivcsw;
 
-#ifdef CONFIG_SCHEDSTATS
 	P(se.nr_migrations);
 
+#ifdef CONFIG_SCHEDSTATS
 	if (schedstat_enabled()) {
 		u64 avg_atom, avg_per_cpu;
 
-- 
2.4.11

[toc] | [next] | [standalone]


#1416210

FromMel Gorman <mgorman@techsingularity.net>
Date2016-06-07 15:50 +0200
Message-ID<rHpyi-3ll-43@gated-at.bofh.it>
In reply to#1413556
On Fri, Jun 03, 2016 at 05:58:41PM -0500, Josh Poimboeuf wrote:
> The nr_migrations field is updated independently of CONFIG_SCHEDSTATS,
> so it can be displayed regardless.
> 
> Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>

Acked-by: Mel Gorman <mgorman@techsingularity.net>

-- 
Mel Gorman
SUSE Labs

[toc] | [prev] | [next] | [standalone]


#1417514 — [tip:sched/core] sched/debug: Always show 'nr_migrations'

Fromtip-bot for Josh Poimboeuf <tipbot@zytor.com>
Date2016-06-08 16:30 +0200
Subject[tip:sched/core] sched/debug: Always show 'nr_migrations'
Message-ID<rHMEy-1il-33@gated-at.bofh.it>
In reply to#1413556
Commit-ID:  03c041c5bf6ed584dff36b7cd509e0146a124277
Gitweb:     http://git.kernel.org/tip/03c041c5bf6ed584dff36b7cd509e0146a124277
Author:     Josh Poimboeuf <jpoimboe@redhat.com>
AuthorDate: Fri, 3 Jun 2016 17:58:41 -0500
Committer:  Ingo Molnar <mingo@kernel.org>
CommitDate: Wed, 8 Jun 2016 14:34:49 +0200

sched/debug: Always show 'nr_migrations'

The nr_migrations field is updated independently of CONFIG_SCHEDSTATS,
so it can be displayed regardless.

Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Mel Gorman <mgorman@techsingularity.net>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Matt Fleming <matt@codeblueprint.co.uk>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/5b1b04057ae2b14d73c2d03f56582c1d38cfe066.1464994423.git.jpoimboe@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
---
 kernel/sched/debug.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c
index 0368c39..2a0a999 100644
--- a/kernel/sched/debug.c
+++ b/kernel/sched/debug.c
@@ -879,9 +879,9 @@ void proc_sched_show_task(struct task_struct *p, struct seq_file *m)
 
 	nr_switches = p->nvcsw + p->nivcsw;
 
-#ifdef CONFIG_SCHEDSTATS
 	P(se.nr_migrations);
 
+#ifdef CONFIG_SCHEDSTATS
 	if (schedstat_enabled()) {
 		u64 avg_atom, avg_per_cpu;
 

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web