• Juri Lelli's avatar
    sched/topology: Clarify root domain(s) debug string · bf5015a5
    Juri Lelli authored
    When scheduler debug is enabled, building scheduling domains outputs
    information about how the domains are laid out and to which root domain
    each CPU (or sets of CPUs) belongs, e.g.:
    
     CPU0 attaching sched-domain(s):
      domain-0: span=0-5 level=MC
       groups: 0:{ span=0 }, 1:{ span=1 }, 2:{ span=2 }, 3:{ span=3 }, 4:{ span=4 }, 5:{ span=5 }
     CPU1 attaching sched-domain(s):
      domain-0: span=0-5 level=MC
       groups: 1:{ span=1 }, 2:{ span=2 }, 3:{ span=3 }, 4:{ span=4 }, 5:{ span=5 }, 0:{ span=0 }
    
     [...]
    
     span: 0-5 (max cpu_capacity = 1024)
    
    The fact that latest line refers to CPUs 0-5 root domain doesn't however look
    immediately obvious to me: one might wonder why span 0-5 is reported "again".
    
    Make it more clear by adding "root domain" to it, as to end with the
    following:
    
     CPU0 attaching sched-domain(s):
      domain-0: span=0-5 level=MC
       groups: 0:{ span=0 }, 1:{ span=1 }, 2:{ span=2 }, 3:{ span=3 }, 4:{ span=4 }, 5:{ span=5 }
     CPU1 attaching sched-domain(s):
      domain-0: span=0-5 level=MC
       groups: 1:{ span=1 }, 2:{ span=2 }, 3:{ span=3 }, 4:{ span=4 }, 5:{ span=5 }, 0:{ span=0 }
    
     [...]
    
     root domain span: 0-5 (max cpu_capacity = 1024)
    Signed-off-by: default avatarJuri Lelli <juri.lelli@redhat.com>
    Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
    Cc: Dietmar Eggemann <dietmar.eggemann@arm.com>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Patrick Bellasi <patrick.bellasi@arm.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Link: http://lkml.kernel.org/r/20180524152936.17611-1-juri.lelli@redhat.comSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
    bf5015a5
topology.c 47.5 KB