perf/urgent fixes:

perf bench: (Jiri Olsa):

. Fix NUMA report output code handling of less than 1s runtimes.

perf script: (Ravi Bangoria)

. Add missing output fields in a 'perf script -h' hint.

. Fix crash because of missing evsel->priv.

. Fix crash caused by accessing feat_ops[HEADER_LAST_FEATURE], which
  is just a end of features header marker.

perf stat: (Thomas Richter)

. Remove duplicate event counting

perf test:

. Wire parsing error handling in 'parse events' test (Jiri Olsa)

. Fix 'session topology' test on s/390 (Thomas Richter)

eBPF: (Yonghong Song)

. Fix a clang 7.0 compilation error when building perf linking
  with libclang

intel-pt: (Adrian Hunter)

. Fix packet decoding of CYC packets.

Copies of kernel files: (Arnaldo Carvalho de Melo)

. Synchronize drm/drm.h UAPI

. Update x86's syscall_64.tbl, adding support for 'io_pgetevents' and 'rseq'
  in 'perf trace'.

. Update powerpc uapi/asm/unistd.h, adding support for the 'rseq' syscall.

. Update if_link.h and bpf.h, no effect on tool features.

PowerPC: (Sandipan Das)

. Fix crash if callchain is empty.

s/390: (Thomas Richter)

. Support random socked_id assignment in the perf header.

. Support s390 random socket_id assignment in perf.data file.

. Make PMU alias definitions taken from sysfs and JSON files comparable
  by normalizing them wrt spaces and newlines.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
perf tools: Fix crash caused by accessing feat_ops[HEADER_LAST_FEATURE]

perf_event__process_feature() accesses feat_ops[HEADER_LAST_FEATURE]
which is not defined and thus perf is crashing. HEADER_LAST_FEATURE is
used as an end marker for the perf report but it's unused for perf
script/annotate. Ignore HEADER_LAST_FEATURE for perf script/annotate,
just like it is done in 'perf report'.

Before:
  # perf record -o - ls | perf script
  <SNIP 'ls' output>
  Segmentation fault (core dumped)
  #

After:
  # perf record -o - ls | perf script
  <SNIP 'ls' output>
  Segmentation fault (core dumped)
  ls 7031 4392.099856:  250000 cpu-clock:uhH:  7f5e0ce7cd60
  ls 7031 4392.100355:  250000 cpu-clock:uhH:  7f5e0c706ef7
  #

Signed-off-by: Ravi Bangoria <ravi.bangoria@linux.ibm.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: David Carrillo-Cisneros <davidcc@google.com>
Cc: Jin Yao <yao.jin@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Fixes: 57b5de463925 ("perf report: Support forced leader feature in pipe mode")
Link: http://lkml.kernel.org/r/20180625124220.6434-4-ravi.bangoria@linux.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
4 files changed