1. 15 8月, 2017 3 次提交
    • A
      powerpc/perf/imc: Fix nest events on muti socket system · 7efbae90
      Anju T 提交于
      In a multi node system with discontiguous node ids, nest event values
      are not showing up properly. eg. lscpu output:
      
        NUMA node0 CPU(s): 0-15
        NUMA node8 CPU(s): 16-31
      
      Nest event values on such systems can be counted on CPUs <= 15:
      
        $./perf stat -e 'nest_powerbus0_imc/PM_PB_CYC/' -C 0-14 -I 1000 sleep 1000
        #           time             counts unit events
             1.000294577    30,17,24,42,880 nest_powerbus0_imc/PM_PB_CYC/
      
      But not on CPUs >= 16:
      
        $./perf stat -e 'nest_powerbus0_imc/PM_PB_CYC/' -C 16-28 -I 1000 sleep 1000
        #           time             counts unit events
             1.000049902    <not supported> nest_powerbus0_imc/PM_PB_CYC/
      
      This is because, when fetching the reference count, the node id (which
      may be sparse) is used as the array index, not the node number (which
      is 0 based and contiguous).
      
      Fix it by using the node number as the array index.
      
        $./perf stat -e 'nest_powerbus0_imc/PM_PB_CYC/' -C 16-28 -I 1000 sleep 1000
        #           time             counts unit events
             1.000241961    26,12,35,28,704 nest_powerbus0_imc/PM_PB_CYC/
      Signed-off-by: NAnju T Sudhakar <anju@linux.vnet.ibm.com>
      [mpe: Change log tweaks for clarity and brevity]
      Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
      7efbae90
    • M
      powerpc/mm/nohash: Move definition of PGALLOC_GFP to fix build errors · 5b6c133e
      Michael Ellerman 提交于
      In some obscure Book3E configs (randconfig) we can end up missing a
      definition for PGALLOC_GFP in pgtable_64.c.
      
      Fix it by moving the definition to asm/pgalloc.h.
      
      Fixes: de3b8761 ("powerpc/mm/book(e)(3s)/64: Add page table accounting")
      Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
      5b6c133e
    • N
      powerpc/xmon: Exclude all of xmon from ftrace · e12d94f8
      Naveen N. Rao 提交于
      Exclude core xmon files from ftrace (along with an xmon xive helper
      outside of xmon/) to minimize impact of ftrace while within xmon.
      
      Before:
        /sys/kernel/debug/tracing# grep -ci xmon available_filter_functions
        26
      
      After:
        /sys/kernel/debug/tracing# grep -ci xmon available_filter_functions
        0
      Signed-off-by: NNaveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
      [mpe: Use $(subst ..) on KBUILD_CFLAGS rather than CFLAGS_REMOVE_xxx]
      Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
      e12d94f8
  2. 14 8月, 2017 5 次提交
  3. 10 8月, 2017 32 次提交