1. 16 Sep, 2015 3 commits
    • Ingo Molnar's avatar
      Merge branch 'perf/urgent' into perf/core, to resolve a conflict · d71b0ad8
      Ingo Molnar authored
      Conflicts:
      	tools/perf/ui/browsers/hists.c
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      d71b0ad8
    • Ingo Molnar's avatar
      Merge tag 'perf-core-for-mingo' of... · a4d71093
      Ingo Molnar authored
      Merge tag 'perf-core-for-mingo' 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:
      
      - Enhance the error reporting of tracepoint event parsing, e.g.:
      
          $ oldperf record -e sched:sched_switc usleep 1
          event syntax error: 'sched:sched_switc'
                               \___ unknown tracepoint
          Run 'perf list' for a list of valid events
      
        Now we get the much nicer:
      
          $ perf record -e sched:sched_switc ls
          event syntax error: 'sched:sched_switc'
                               \___ can't access trace events
      
          Error: No permissions to read /sys/kernel/debug/tracing/events/sched/sched_switc
          Hint:  Try 'sudo mount -o remount,mode=755 /sys/kernel/debug'
      
        And after we have those mount point permissions fixed:
      
          $ perf record -e sched:sched_switc ls
          event syntax error: 'sched:sched_switc'
                               \___ unknown tracepoint
      
          Error: File /sys/kernel/debug/tracing/events/sched/sched_switc not found.
          Hint:  Perhaps this kernel misses some CONFIG_ setting to enable this feature?.
      
        Now its just a matter of using what git uses to suggest alternatives when we
        make a typo, i.e. that it is just an 'h' missing :-)
      
        I.e. basically now the event parsing routing uses the strerror_open()
        routines introduced by and used in 'perf trace' work. (Jiri Olsa)
      
      Infrastructure changes:
      
      - Export init/exit_probe_symbol_maps() from 'perf probe' for use in eBPF.
        (Namhyung Kim)
      
      - Free perf_probe_event in cleanup_perf_probe_events(). (Namhyung Kim)
      
      - regs_query_register_offset() infrastructure + implementation for x86.
        First user will be the perf/eBPF code. (Wang Nan)
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      a4d71093
    • Ingo Molnar's avatar
      Merge tag 'perf-urgent-for-mingo' of... · f6cf87f7
      Ingo Molnar authored
      Merge tag 'perf-urgent-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/urgent
      
      Pull perf/urgent fixes from Arnaldo Carvalho de Melo:
      
      - Fix segfault pressing -> in 'perf top' with no hist entries. (Wang Nan)
      
         E.g:
      	perf top -e page-faults --pid 11400 # 11400 generates no page-fault
      
      - Fix propagation of thread and cpu maps, that got broken when doing incomplete
        changes to better support events with a PMU cpu mask, leading to Intel PT to
        fail with an error like:
      
          $ perf record -e intel_pt//u uname
          Error: The sys_perf_event_open() syscall returned with
                    22 (Invalid argument) for event (sched:sched_switch).
      
        Because intel_pt adds that sched:sched_switch evsel to the evlist after the
        thread/cpu maps were propagated to the evsels, fix it. (Adrian Hunter)
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      f6cf87f7
  2. 15 Sep, 2015 23 commits
  3. 14 Sep, 2015 14 commits