]> Git Repo - linux.git/commitdiff
Merge branch 'perf-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
authorLinus Torvalds <[email protected]>
Tue, 17 Sep 2019 00:06:21 +0000 (17:06 -0700)
committerLinus Torvalds <[email protected]>
Tue, 17 Sep 2019 00:06:21 +0000 (17:06 -0700)
Pull perf updates from Ingo Molnar:
 "Kernel side changes:

   - Improved kbprobes robustness

   - Intel PEBS support for PT hardware tracing

   - Other Intel PT improvements: high order pages memory footprint
     reduction and various related cleanups

   - Misc cleanups

  The perf tooling side has been very busy in this cycle, with over 300
  commits. This is an incomplete high-level summary of the many
  improvements done by over 30 developers:

   - Lots of updates to the following tools:

      'perf c2c'
      'perf config'
      'perf record'
      'perf report'
      'perf script'
      'perf test'
      'perf top'
      'perf trace'

   - Updates to libperf and libtraceevent, and a consolidation of the
     proliferation of x86 instruction decoder libraries.

   - Vendor event updates for Intel and PowerPC CPUs,

   - Updates to hardware tracing tooling for ARM and Intel CPUs,

   - ... and lots of other changes and cleanups - see the shortlog and
     Git log for details"

* 'perf-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (322 commits)
  kprobes: Prohibit probing on BUG() and WARN() address
  perf/x86: Make more stuff static
  x86, perf: Fix the dependency of the x86 insn decoder selftest
  objtool: Ignore intentional differences for the x86 insn decoder
  objtool: Update sync-check.sh from perf's check-headers.sh
  perf build: Ignore intentional differences for the x86 insn decoder
  perf intel-pt: Use shared x86 insn decoder
  perf intel-pt: Remove inat.c from build dependency list
  perf: Update .gitignore file
  objtool: Move x86 insn decoder to a common location
  perf metricgroup: Support multiple events for metricgroup
  perf metricgroup: Scale the metric result
  perf pmu: Change convert_scale from static to global
  perf symbols: Move mem_info and branch_info out of symbol.h
  perf auxtrace: Uninline functions that touch perf_session
  perf tools: Remove needless evlist.h include directives
  perf tools: Remove needless evlist.h include directives
  perf tools: Remove needless thread_map.h include directives
  perf tools: Remove needless thread.h include directives
  perf tools: Remove needless map.h include directives
  ...

1  2 
tools/objtool/Makefile
tools/perf/Makefile.config

diff --combined tools/objtool/Makefile
index 20f67fcf378d540eced6080f41c0c844f7fe8b79,8c9b9adc67ef49a3601f2938d9396573652e5195..d2a19b0bc05aa9de937e5753ac45b93bb9d7dd67
@@@ -33,9 -33,9 +33,9 @@@ all: $(OBJTOOL
  
  INCLUDES := -I$(srctree)/tools/include \
            -I$(srctree)/tools/arch/$(HOSTARCH)/include/uapi \
-           -I$(srctree)/tools/objtool/arch/$(ARCH)/include
+           -I$(srctree)/tools/arch/$(ARCH)/include
  WARNINGS := $(EXTRA_WARNINGS) -Wno-switch-default -Wno-switch-enum -Wno-packed
 -CFLAGS   += -Werror $(WARNINGS) $(KBUILD_HOSTCFLAGS) -g $(INCLUDES) $(LIBELF_FLAGS)
 +CFLAGS   := -Werror $(WARNINGS) $(KBUILD_HOSTCFLAGS) -g $(INCLUDES) $(LIBELF_FLAGS)
  LDFLAGS  += $(LIBELF_LIBS) $(LIBSUBCMD) $(KBUILD_HOSTLDFLAGS)
  
  # Allow old libelf to be used:
@@@ -60,7 -60,7 +60,7 @@@ $(LIBSUBCMD): fixdep FORC
  clean:
        $(call QUIET_CLEAN, objtool) $(RM) $(OBJTOOL)
        $(Q)find $(OUTPUT) -name '*.o' -delete -o -name '\.*.cmd' -delete -o -name '\.*.d' -delete
-       $(Q)$(RM) $(OUTPUT)arch/x86/lib/inat-tables.c $(OUTPUT)fixdep
+       $(Q)$(RM) $(OUTPUT)arch/x86/inat-tables.c $(OUTPUT)fixdep
  
  FORCE:
  
index eaf25ee104e49d0f892ab8120739ae0430471c09,bf8caa7d17f6278e243acff1d20dc2b5e1936b94..a269d78456b601297f216099a58b0c6d85feb996
@@@ -60,10 -60,6 +60,10 @@@ ifeq ($(SRCARCH),arm64
    LIBUNWIND_LIBS = -lunwind -lunwind-aarch64
  endif
  
 +ifeq ($(SRCARCH),riscv)
 +  NO_PERF_REGS := 0
 +endif
 +
  ifeq ($(SRCARCH),csky)
    NO_PERF_REGS := 0
  endif
@@@ -86,7 -82,7 +86,7 @@@ endi
  # Disable it on all other architectures in case libdw unwind
  # support is detected in system. Add supported architectures
  # to the check.
 -ifneq ($(SRCARCH),$(filter $(SRCARCH),x86 arm arm64 powerpc s390 csky))
 +ifneq ($(SRCARCH),$(filter $(SRCARCH),x86 arm arm64 powerpc s390 csky riscv))
    NO_LIBDW_DWARF_UNWIND := 1
  endif
  
@@@ -281,11 -277,12 +281,12 @@@ ifeq ($(DEBUG),0
    endif
  endif
  
+ INC_FLAGS += -I$(src-perf)/lib/include
  INC_FLAGS += -I$(src-perf)/util/include
  INC_FLAGS += -I$(src-perf)/arch/$(SRCARCH)/include
- INC_FLAGS += -I$(srctree)/tools/include/uapi
  INC_FLAGS += -I$(srctree)/tools/include/
  INC_FLAGS += -I$(srctree)/tools/arch/$(SRCARCH)/include/uapi
+ INC_FLAGS += -I$(srctree)/tools/include/uapi
  INC_FLAGS += -I$(srctree)/tools/arch/$(SRCARCH)/include/
  INC_FLAGS += -I$(srctree)/tools/arch/$(SRCARCH)/
  
@@@ -827,6 -824,17 +828,17 @@@ ifndef NO_LIBZST
    endif
  endif
  
+ ifndef NO_LIBCAP
+   ifeq ($(feature-libcap), 1)
+     CFLAGS += -DHAVE_LIBCAP_SUPPORT
+     EXTLIBS += -lcap
+     $(call detected,CONFIG_LIBCAP)
+   else
+     msg := $(warning No libcap found, disables capability support, please install libcap-devel/libcap-dev);
+     NO_LIBCAP := 1
+   endif
+ endif
  ifndef NO_BACKTRACE
    ifeq ($(feature-backtrace), 1)
      CFLAGS += -DHAVE_BACKTRACE_SUPPORT
This page took 0.099257 seconds and 4 git commands to generate.