Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c3290974 authored by Ingo Molnar's avatar Ingo Molnar
Browse files

Merge tag 'perf-core-for-mingo-4.16-20171206' of...

Merge tag 'perf-core-for-mingo-4.16-20171206' 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:

- Improve build messages for files needed by Intel-PT, originally copied
  from the kernel sources, that drifted from its original (Adrian Hunter)

- Allow computing 'perf stat' style metrics in 'perf script' (Andi Kleen)

- Fix 'perf report -D' output for user metadata events (Arnaldo Carvalho de Melo)

- Add feature test for pthread_barrier_t availability (Arnaldo Carvalho de Melo)

- Allow again using x86's asm.h when building for the 'bpf' clang target,
  making some 'perf test' LLVM/BPF entries work again (Arnaldo Carvalho de Melo)

- Use cpumaps in 'perf bench futex', eliminating some code duplication
  (Davidlohr Bueso)

- Improve PMU infrastructure to support amp64's ThunderX2 implementation
  defined core events (Ganapatrao Kulkarni)

- Add hint about how to add USDT probes for Node.js (Hansuk Hong)

- s/390 needs -fPIC to be incrementally linked or linked to shared
  libraries (Hendrik Brueckner)

- Use pthread_barrier to synch 'perf bench futex wake-parallel' waker
  threads (James Yang)

- Fix up build in hardened environments, such as Fedora 27 (Jiri Olsa)

- Add a tip about cacheline events in 'perf c2c' (Sangwon Hong)

- Set browser mode right before setup_browser(), because we may have
  errors printed before that, which were getting lost (Seokho Song)

- s390x doesn't support PERF_TYPE_BREAKPOINT, so disable 'perf test'
  cases 19 and 20 on s390x, that tests that feature (Thomas Richter)

- Fix unnecessary memory allocation for s390x 'perf annotate' objdump
  parsing, which could lead to thousands of needless entries in the
  instruction handling array (Thomas Richter)

- Fix objdump comment parsing for Intel mov dissassembly (Thomas Richter)

- Clarify usage of 'overwrite' and 'backward' in the evlist/mmap code,
  removing the 'overwrite' parameter from several functions as it was
  always used it as 'false' (Wang Nan)

- Fix 'perf record' backward recording, it wasn't doing what was
  expected: overwriting records when the ring buffer gets full (Wang Nan)

- Use more flexible pattern matching for CPU identification for perf
  vendor event's mapfile.csv, removing the need for a new perf binary
  for a sligthly different chip revision that shares the same set of
  counters (William Cohen)

Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
parents e4f57147 0b72d69a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -118,6 +118,7 @@ we might work for today, have in the past, or will in the future.
  - Mike Marshall
  - Chris Mason
  - Paul E. McKenney
  - Arnaldo Carvalho de Melo
  - David S. Miller
  - Ingo Molnar
  - Kuninori Morimoto
+2 −0
Original line number Diff line number Diff line
@@ -136,6 +136,7 @@
#endif

#ifndef __ASSEMBLY__
#ifndef __BPF__
/*
 * This output constraint should be used for any inline asm which has a "call"
 * instruction.  Otherwise the asm may be inserted before the frame pointer
@@ -145,5 +146,6 @@
register unsigned long current_stack_pointer asm(_ASM_SP);
#define ASM_CALL_CONSTRAINT "+r" (current_stack_pointer)
#endif
#endif

#endif /* _ASM_X86_ASM_H */
+1 −0
Original line number Diff line number Diff line
@@ -56,6 +56,7 @@ FEATURE_TESTS_BASIC := \
        libunwind-arm                   \
        libunwind-aarch64               \
        pthread-attr-setaffinity-np     \
        pthread-barrier     		\
        stackprotector-all              \
        timerfd                         \
        libdw-dwarf-unwind              \
+4 −0
Original line number Diff line number Diff line
@@ -37,6 +37,7 @@ FILES= \
         test-libunwind-debug-frame-arm.bin     \
         test-libunwind-debug-frame-aarch64.bin \
         test-pthread-attr-setaffinity-np.bin   \
         test-pthread-barrier.bin		\
         test-stackprotector-all.bin            \
         test-timerfd.bin                       \
         test-libdw-dwarf-unwind.bin            \
@@ -79,6 +80,9 @@ $(OUTPUT)test-hello.bin:
$(OUTPUT)test-pthread-attr-setaffinity-np.bin:
	$(BUILD) -D_GNU_SOURCE -lpthread

$(OUTPUT)test-pthread-barrier.bin:
	$(BUILD) -lpthread

$(OUTPUT)test-stackprotector-all.bin:
	$(BUILD) -fstack-protector-all

+5 −0
Original line number Diff line number Diff line
@@ -118,6 +118,10 @@
# include "test-pthread-attr-setaffinity-np.c"
#undef main

#define main main_test_pthread_barrier
# include "test-pthread-barrier.c"
#undef main

#define main main_test_sched_getcpu
# include "test-sched_getcpu.c"
#undef main
@@ -187,6 +191,7 @@ int main(int argc, char *argv[])
	main_test_sync_compare_and_swap(argc, argv);
	main_test_zlib();
	main_test_pthread_attr_setaffinity_np();
	main_test_pthread_barrier();
	main_test_lzma();
	main_test_get_cpuid();
	main_test_bpf();
Loading