• Linus Torvalds's avatar
    Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · f187e9fd
    Linus Torvalds authored
    Pull perf updates and fixes from Ingo Molnar:
     "It's mostly fixes, but there's also two late items:
    
       - preliminary GTK GUI support for perf report
       - PMU raw event format descriptors in sysfs, to be parsed by tooling
    
      The raw event format in sysfs is a new ABI.  For example for the 'CPU'
      PMU we have:
    
        aldebaran:~> ll /sys/bus/event_source/devices/cpu/format/*
        -r--r--r--. 1 root root 4096 Mar 31 10:29 /sys/bus/event_source/devices/cpu/format/any
        -r--r--r--. 1 root root 4096 Mar 31 10:29 /sys/bus/event_source/devices/cpu/format/cmask
        -r--r--r--. 1 root root 4096 Mar 31 10:29 /sys/bus/event_source/devices/cpu/format/edge
        -r--r--r--. 1 root root 4096 Mar 31 10:29 /sys/bus/event_source/devices/cpu/format/event
        -r--r--r--. 1 root root 4096 Mar 31 10:29 /sys/bus/event_source/devices/cpu/format/inv
        -r--r--r--. 1 root root 4096 Mar 31 10:29 /sys/bus/event_source/devices/cpu/format/offcore_rsp
        -r--r--r--. 1 root root 4096 Mar 31 10:29 /sys/bus/event_source/devices/cpu/format/pc
        -r--r--r--. 1 root root 4096 Mar 31 10:29 /sys/bus/event_source/devices/cpu/format/umask
    
      those lists of fields contain a specific format:
    
        aldebaran:~> cat /sys/bus/event_source/devices/cpu/format/offcore_rsp
        config1:0-63
    
      So, those who wish to specify raw events can now use the following
      event format:
    
        -e cpu/cmask=1,event=2,umask=3
    
      Most people will not want to specify any events (let alone raw
      events), they'll just use whatever default event the tools use.
    
      But for more obscure PMU events that have no cross-architecture
      generic events the above syntax is more usable and a bit more
      structured than specifying hex numbers."
    
    * 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (41 commits)
      perf tools: Remove auto-generated bison/flex files
      perf annotate: Fix off by one symbol hist size allocation and hit accounting
      perf tools: Add missing ref-cycles event back to event parser
      perf annotate: addr2line wants addresses in same format as objdump
      perf probe: Finder fails to resolve function name to address
      tracing: Fix ent_size in trace output
      perf symbols: Handle NULL dso in dso__name_len
      perf symbols: Do not include libgen.h
      perf tools: Fix bug in raw sample parsing
      perf tools: Fix display of first level of callchains
      perf tools: Switch module.h into export.h
      perf: Move mmap page data_head offset assertion out of header
      perf: Fix mmap_page capabilities and docs
      perf diff: Fix to work with new hists design
      perf tools: Fix modifier to be applied on correct events
      perf tools: Fix various casting issues for 32 bits
      perf tools: Simplify event_read_id exit path
      tracing: Fix ftrace stack trace entries
      tracing: Move the tracing_on/off() declarations into CONFIG_TRACING
      perf report: Add a simple GTK2-based 'perf report' browser
      ...
    f187e9fd
perf_event.c 42.4 KB