linux/tools/perf/util
Linus Torvalds 9d9420f120 Merge branch 'perf-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull perf updates from Ingo Molnar:
 "Kernel side updates:

   - Fix and enhance poll support (Jiri Olsa)

   - Re-enable inheritance optimization (Jiri Olsa)

   - Enhance Intel memory events support (Stephane Eranian)

   - Refactor the Intel uncore driver to be more maintainable (Zheng
     Yan)

   - Enhance and fix Intel CPU and uncore PMU drivers (Peter Zijlstra,
     Andi Kleen)

   - [ plus various smaller fixes/cleanups ]

  User visible tooling updates:

   - Add +field argument support for --field option, so that one can add
     fields to the default list of fields to show, ie now one can just
     do:

         perf report --fields +pid

     And the pid will appear in addition to the default fields (Jiri
     Olsa)

   - Add +field argument support for --sort option (Jiri Olsa)

   - Honour -w in the report tools (report, top), allowing to specify
     the widths for the histogram entries columns (Namhyung Kim)

   - Properly show submicrosecond times in 'perf kvm stat' (Christian
     Borntraeger)

   - Add beautifier for mremap flags param in 'trace' (Alex Snast)

   - perf script: Allow callchains if any event samples them

   - Don't truncate Intel style addresses in 'annotate' (Alex Converse)

   - Allow profiling when kptr_restrict == 1 for non root users, kernel
     samples will just remain unresolved (Andi Kleen)

   - Allow configuring default options for callchains in config file
     (Namhyung Kim)

   - Support operations for shared futexes.  (Davidlohr Bueso)

   - "perf kvm stat report" improvements by Alexander Yarygin:
       -  Save pid string in opts.target.pid
       -  Enable the target.system_wide flag
       -  Unify the title bar output

   - [ plus lots of other fixes and small improvements.  ]

  Tooling infrastructure changes:

   - Refactor unit and scale function parameters for PMU parsing
     routines (Matt Fleming)

   - Improve DSO long names lookup with rbtree, resulting in great
     speedup for workloads with lots of DSOs (Waiman Long)

   - We were not handling POLLHUP notifications for event file
     descriptors

     Fix it by filtering entries in the events file descriptor array
     after poll() returns, refcounting mmaps so that when the last fd
     pointing to a perf mmap goes away we do the unmap (Arnaldo Carvalho
     de Melo)

   - Intel PT prep work, from Adrian Hunter, including:
       - Let a user specify a PMU event without any config terms
       - Add perf-with-kcore script
       - Let default config be defined for a PMU
       - Add perf_pmu__scan_file()
       - Add a 'perf test' for tracking with sched_switch
       - Add 'flush' callback to scripting API

   - Use ring buffer consume method to look like other tools (Arnaldo
     Carvalho de Melo)

   - hists browser (used in top and report) refactorings, getting rid of
     unused variables and reducing source code size by handling similar
     cases in a fewer functions (Namhyung Kim).

   - Replace thread unsafe strerror() with strerror_r() accross the
     whole tools/perf/ tree (Masami Hiramatsu)

   - Rename ordered_samples to ordered_events and allow setting a queue
     size for ordering events (Jiri Olsa)

   - [ plus lots of fixes, cleanups and other improvements ]"

* 'perf-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (198 commits)
  perf/x86: Tone down kernel messages when the PMU check fails in a virtual environment
  perf/x86/intel/uncore: Fix minor race in box set up
  perf record: Fix error message for --filter option not coming after tracepoint
  perf tools: Fix build breakage on arm64 targets
  perf symbols: Improve DSO long names lookup speed with rbtree
  perf symbols: Encapsulate dsos list head into struct dsos
  perf bench futex: Sanitize -q option in requeue
  perf bench futex: Support operations for shared futexes
  perf trace: Fix mmap return address truncation to 32-bit
  perf tools: Refactor unit and scale function parameters
  perf tools: Fix line number in the config file error message
  perf tools: Convert {record,top}.call-graph option to call-graph.record-mode
  perf tools: Introduce perf_callchain_config()
  perf callchain: Move some parser functions to callchain.c
  perf tools: Move callchain config from record_opts to callchain_param
  perf hists browser: Fix callchain print bug on TUI
  perf tools: Use ACCESS_ONCE() instead of volatile cast
  perf tools: Modify error code for when perf_session__new() fails
  perf tools: Fix perf record as non root with kptr_restrict == 1
  perf stat: Fix --per-core on multi socket systems
  ...
2014-10-13 15:58:15 +02:00
..
include perf tools: Move pr_* debug macros into debug object 2014-07-17 12:58:39 -03:00
scripting-engines perf scripting: Add 'flush' callback to scripting API 2014-08-22 13:12:11 -03:00
PERF-VERSION-GEN
abspath.c
alias.c
annotate.c perf annotate: Don't truncate Intel style addresses 2014-08-15 10:39:26 -03:00
annotate.h tools: Consolidate types.h 2014-05-01 21:22:39 +02:00
bitmap.c
build-id.c perf tools: Use tid for finding thread 2014-05-12 11:09:50 +02:00
build-id.h tools: Consolidate types.h 2014-05-01 21:22:39 +02:00
cache.h perf tools: Add perf_config_u64 function 2014-08-12 12:03:00 -03:00
callchain.c perf tools: Introduce perf_callchain_config() 2014-09-26 12:43:24 -03:00
callchain.h perf tools: Introduce perf_callchain_config() 2014-09-26 12:43:24 -03:00
cgroup.c
cgroup.h
cloexec.c perf util: Replace strerror with strerror_r for thread-safety 2014-08-15 10:58:35 -03:00
cloexec.h perf tools: Enable close-on-exec flag on perf file descriptor 2014-07-18 09:09:34 +02:00
color.c perf tools: Make __hpp__fmt() receive an additional len argument 2014-08-12 12:03:05 -03:00
color.h perf tools: Make __hpp__fmt() receive an additional len argument 2014-08-12 12:03:05 -03:00
comm.c perf tools: Identify which comms are from exec 2014-08-13 19:23:08 -03:00
comm.h perf tools: Identify which comms are from exec 2014-08-13 19:23:08 -03:00
config.c perf tools: Fix line number in the config file error message 2014-09-26 12:45:23 -03:00
cpumap.c perf tools: Use cpu/possible instead of cpu/kernel_max 2014-04-22 17:39:16 +02:00
cpumap.h perf tools: Allow ability to map cpus to nodes easily 2014-04-22 17:39:12 +02:00
ctype.c
data.c perf util: Replace strerror with strerror_r for thread-safety 2014-08-15 10:58:35 -03:00
data.h
debug.c perf tools: Add debug prints for ordered events queue 2014-08-12 12:03:01 -03:00
debug.h perf: Use strerror_r instead of strerror 2014-08-15 10:54:29 -03:00
dso.c perf symbols: Improve DSO long names lookup speed with rbtree 2014-10-01 14:39:57 -03:00
dso.h perf symbols: Improve DSO long names lookup speed with rbtree 2014-10-01 14:39:57 -03:00
dwarf-aux.c perf probe: Fix perf probe to find correct variable DIE 2014-06-04 14:49:20 +02:00
dwarf-aux.h
environment.c
event.c perf tools: Fix perf record as non root with kptr_restrict == 1 2014-09-26 10:51:41 -03:00
event.h perf tools: Add flags and insn_len to struct sample 2014-08-13 19:23:32 -03:00
evlist.c perf evlist: Unmap when all refcounts to fd are gone and events drained 2014-09-25 16:46:55 -03:00
evlist.h perf evlist: Refcount mmaps 2014-09-25 16:46:55 -03:00
evsel.c perf tools: Move callchain config from record_opts to callchain_param 2014-09-26 12:40:33 -03:00
evsel.h perf evlist: Add perf_evlist__set_tracking_event() 2014-08-13 19:21:32 -03:00
exec_cmd.c
exec_cmd.h
generate-cmdlist.sh
header.c perf symbols: Encapsulate dsos list head into struct dsos 2014-09-30 12:11:49 -03:00
header.h perf tools: Add dsos__hit_all() 2014-07-23 11:25:40 -03:00
help.c
help.h
hist.c perf top: Fix -z option behavior 2014-08-13 17:28:07 -03:00
hist.h perf top: Fix -z option behavior 2014-08-13 17:28:07 -03:00
hweight.c
intlist.c
intlist.h
kvm-stat.h perf kvm stat report: Save pid string in opts.target.pid 2014-09-17 17:08:07 -03:00
levenshtein.c
levenshtein.h
machine.c perf symbols: Improve DSO long names lookup speed with rbtree 2014-10-01 14:39:57 -03:00
machine.h perf symbols: Encapsulate dsos list head into struct dsos 2014-09-30 12:11:49 -03:00
map.c perf symbols: Don't try to find DSOs in SYSV maps 2014-08-20 08:26:09 -03:00
map.h perf tools: Add thread parameter to vdso__dso_findnew() 2014-07-23 17:37:26 -03:00
ordered-events.c perf tools: Allow out of order messages in forced flush 2014-08-12 12:03:02 -03:00
ordered-events.h perf tools: Allow out of order messages in forced flush 2014-08-12 12:03:02 -03:00
pager.c perf tools: Add cat as fallback pager 2014-05-21 11:48:33 +02:00
parse-events.c perf record: Fix error message for --filter option not coming after tracepoint 2014-10-01 15:05:32 -03:00
parse-events.h tools: Consolidate types.h 2014-05-01 21:22:39 +02:00
parse-events.l
parse-events.y perf tools: Let a user specify a PMU event without any config terms 2014-09-17 17:08:08 -03:00
parse-options.c perf kvm: introduce --list-cmds for use by scripts 2014-03-14 18:08:41 -03:00
parse-options.h perf tools: Add option macro OPT_CALLBACK_OPTARG 2014-07-16 17:57:36 -03:00
path.c
perf_regs.c perf tools: Cache register accesses for unwind processing 2014-06-12 16:53:19 +02:00
perf_regs.h perf tools: Cache register accesses for unwind processing 2014-06-12 16:53:19 +02:00
pmu.c perf tools: Refactor unit and scale function parameters 2014-09-29 15:03:57 -03:00
pmu.h perf tools: Refactor unit and scale function parameters 2014-09-29 15:03:57 -03:00
pmu.l
pmu.y
probe-event.c perf symbols: Encapsulate dsos list head into struct dsos 2014-09-30 12:11:49 -03:00
probe-event.h perf probe: Do not access kallsyms when analyzing user binaries 2014-09-17 18:01:14 -03:00
probe-finder.c perf probe: Do not use dwfl_module_addrsym if dwarf_diename finds symbol name 2014-09-17 18:01:43 -03:00
probe-finder.h perf probe: Support distro-style debuginfo for uprobe 2014-02-18 09:38:44 -03:00
pstack.c perf tools: Move pr_* debug macros into debug object 2014-07-17 12:58:39 -03:00
pstack.h
python-ext-sources
python.c tools lib api: Adopt fdarray class from perf's evlist 2014-09-25 16:46:55 -03:00
quote.c
quote.h
rblist.c
rblist.h
record.c perf evlist: Add perf_evlist__set_tracking_event() 2014-08-13 19:21:32 -03:00
run-command.c perf util: Replace strerror with strerror_r for thread-safety 2014-08-15 10:58:35 -03:00
run-command.h
session.c perf tools: Fix perf record as non root with kptr_restrict == 1 2014-09-26 10:51:41 -03:00
session.h perf tools: Use ACCESS_ONCE() instead of volatile cast 2014-09-26 12:36:03 -03:00
setup.py
sigchain.c
sigchain.h
sort.c perf tools: Add +field argument support for --sort option 2014-09-17 17:08:07 -03:00
sort.h perf tools: Add +field argument support for --field option 2014-08-24 08:11:19 -03:00
srcline.c
stat.c
stat.h tools: Consolidate types.h 2014-05-01 21:22:39 +02:00
strbuf.c
strbuf.h
strfilter.c
strfilter.h
string.c saner perf_atoll() 2014-10-09 02:39:10 -04:00
strlist.c
strlist.h
svghelper.c perf timechart: Implement IO mode 2014-07-10 00:22:54 +02:00
svghelper.h perf timechart: Implement IO mode 2014-07-10 00:22:54 +02:00
symbol-elf.c perf symbols: Encapsulate dsos list head into struct dsos 2014-09-30 12:11:49 -03:00
symbol-minimal.c perf tools: Add dso__type() 2014-07-23 17:36:36 -03:00
symbol.c perf symbols: Add path to Ubuntu kernel debuginfo file 2014-09-17 17:08:10 -03:00
symbol.h perf tools: Disable kernel symbol demangling by default 2014-09-17 17:08:09 -03:00
target.c
target.h
thread.c perf tools: Identify which comms are from exec 2014-08-13 19:23:08 -03:00
thread.h perf tools: Identify which comms are from exec 2014-08-13 19:23:08 -03:00
thread_map.c
thread_map.h
tool.h perf tools: Rename ordered_samples bool to ordered_events 2014-08-12 12:02:54 -03:00
top.c
top.h tools: Consolidate types.h 2014-05-01 21:22:39 +02:00
trace-event-info.c perf tools: Move pr_* debug macros into debug object 2014-07-17 12:58:39 -03:00
trace-event-parse.c
trace-event-read.c perf tools: Remove needless getopt.h includes 2014-07-17 12:59:00 -03:00
trace-event-scripting.c perf scripting: Add 'flush' callback to scripting API 2014-08-22 13:12:11 -03:00
trace-event.c
trace-event.h perf scripting: Add 'flush' callback to scripting API 2014-08-22 13:12:11 -03:00
tsc.c perf tools: Move rdtsc() function 2014-07-23 11:48:11 -03:00
tsc.h perf tools: Move rdtsc() function 2014-07-23 11:48:11 -03:00
unwind-libdw.c perf tools: Move pr_* debug macros into debug object 2014-07-17 12:58:39 -03:00
unwind-libdw.h perf tools: Add libdw DWARF post unwind support 2014-02-24 09:29:36 -03:00
unwind-libunwind.c perf tools: Move pr_* debug macros into debug object 2014-07-17 12:58:39 -03:00
unwind.h tools: Consolidate types.h 2014-05-01 21:22:39 +02:00
usage.c
util.c perf util: Replace strerror with strerror_r for thread-safety 2014-08-15 10:58:35 -03:00
util.h perf tools: define _DEFAULT_SOURCE for glibc_2.20 2014-09-17 17:08:10 -03:00
values.c
values.h tools: Consolidate types.h 2014-05-01 21:22:39 +02:00
vdso.c perf tools: Add thread parameter to vdso__dso_findnew() 2014-07-23 17:37:26 -03:00
vdso.h perf tools: Add thread parameter to vdso__dso_findnew() 2014-07-23 17:37:26 -03:00
wrapper.c
xyarray.c
xyarray.h