From: Ingo Molnar Date: Sat, 20 Feb 2016 10:52:16 +0000 (+0100) Subject: Merge tag 'perf-core-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git... X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=91e48b7df15196b8ce01f40455219d3ed7889988;p=linux-beck.git 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: - Add 'perf record' --all-user/--all-kernel options, so that one can tell that all the events in the command line should be restricted to the user or kernel levels (Jiri Olsa), i.e.: perf record -e cycles:u,instructions:u is equivalent to: perf record --all-user -e cycles,instructions - Fix percentage update on key press, due to the buffering code (that creates hist_entries that will later be consumed) touching per hists state that is used by the display thread (Namhyung Kim) - Bail out when event modifiers not supported by 'perf stat' are specified, i.e.: (Wang Nan) # perf stat -e cycles/no-inherit/ usleep 1 event syntax error: 'cycles/no-inherit/' \___ 'no-inherit' is not usable in 'perf stat' # perf stat -e cycles/foo/ usleep 1 event syntax error: 'cycles/foo/' \___ unknown term valid terms: config,config1,config2,name # - Enable setting names for legacy cache, raw and numeric events, e.g: (Wang Nan) # perf record -e cycles -e 4:0x6530160/name=evtx,call-graph=fp/ -a sleep 1 [ perf record: Woken up 1 times to write data ] [ perf record: Captured and wrote 1.659 MB perf.data (844 samples) ] # perf evlist cycles evtx # Miscelaneous/Infrastructure changes: - Handled scaled == -1 case for counters in 'perf stat', fixing recent, only in perf/core, regression (Andi Kleen) - Reference count the cpu and thread maps at set_maps(), fixing the 'object code reading' 'perf test' entry when it was requesting a perf_event_attr.sample_freq > /proc/sys/kernel/perf_event_max_sample_rate (Arnaldo Carvalho de Melo) - Improve perf_evlist__strerror_open() to provide hints for -EINVAL due to perf_event_attr.sample_freq > /proc/sys/kernel/perf_event_max_sample_rate (Arnaldo Carvalho de Melo) - Add checks to various callchain and histogram routines (Namhyung Kim) - Fix checking asprintf return value when parsing additional event config terms (Wang Nan) Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Ingo Molnar --- 91e48b7df15196b8ce01f40455219d3ed7889988