1. 08 May, 2015 2 commits
    • Michael Ellerman's avatar
      perf_event: Don't allow vmalloc() backed perf on powerpc · cb307113
      Michael Ellerman authored
      On powerpc the perf event interrupt is not masked when interrupts are
      disabled, allowing it to function as an NMI.
      
      This causes problems if perf is using vmalloc. If we take a page fault
      on the vmalloc region the fault handler will fail the page fault because
      it detects we are coming in from an NMI (see do_hash_page()).
      
      We don't actually need or want vmalloc backed perf so just disable it on
      powerpc.
      Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
      Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
      Cc: <linuxppc-dev@ozlabs.org>
      Cc: Andrew Morton <akpm@osdl.org>
      Cc: Anton Blanchard <anton@samba.org>
      Cc: Borislav Petkov <bp@alien8.de>
      Cc: H. Peter Anvin <hpa@zytor.com>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: acme@ghostprotocols.net
      Cc: sukadev@linux.vnet.ibm.com
      Link: http://lkml.kernel.org/r/1430720799-18426-1-git-send-email-mpe@ellerman.id.auSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
      cb307113
    • Peter Zijlstra's avatar
      perf: Fix software migrate events · ff303e66
      Peter Zijlstra authored
      Stephane asked about PERF_COUNT_SW_CPU_MIGRATIONS and I realized it
      was borken:
      
       > The problem is that the task isn't actually scheduled while its being
       > migrated (obviously), and if its not scheduled, the counters aren't
       > scheduled either, so there's no observing of the fact.
       >
       > A further problem with migrations is that many migrations happen from
       > softirq context, which is nested inside the 'random' task context of
       > whoemever happens to run at that time, similarly for the wakeup
       > migrations triggered from (soft)irq context. All those end up being
       > accounted in the task that's currently running, eg. your 'ls'.
      
      The below cures this by marking a task as migrated and accounting it
      on the subsequent sched_in().
      Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Borislav Petkov <bp@alien8.de>
      Cc: H. Peter Anvin <hpa@zytor.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      ff303e66
  2. 06 May, 2015 1 commit
    • Ingo Molnar's avatar
      Merge tag 'perf-core-for-mingo-3' of... · 1836ac85
      Ingo Molnar authored
      Merge tag 'perf-core-for-mingo-3' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core
      
      Pull perf/core improvements and fixes from Arnaldo Carvalho de Melo:
      
      User visible changes:
      
        - Improve --filter support for 'perf probe', allowing using its arguments
          on other commands, as --add, --del, etc (Masami Hiramatsu)
      
        - Show warning when running 'perf kmem stat' on a unsuitable perf.data file,
          i.e. one with events that are not the ones required for the stat variant
          used (Namhyung Kim).
      
      Infrastructure changes:
      
        - Auxtrace support patches, paving the way to support Intel PT and BTS (Adrian Hunter)
      
        - hists browser (top, report) refactorings (Namhyung Kim)
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      1836ac85
  3. 05 May, 2015 22 commits
  4. 04 May, 2015 15 commits