Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
authorLinus Torvalds <torvalds@linux-foundation.org>
Sun, 3 Apr 2016 12:22:12 +0000 (07:22 -0500)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 3 Apr 2016 12:22:12 +0000 (07:22 -0500)
Pull perf fixes from Ingo Molnar:
 "Misc kernel side fixes:

   - fix event leak
   - fix AMD PMU driver bug
   - fix core event handling bug
   - fix build bug on certain randconfigs

  Plus misc tooling fixes"

* 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  perf/x86/amd/ibs: Fix pmu::stop() nesting
  perf/core: Don't leak event in the syscall error path
  perf/core: Fix time tracking bug with multiplexing
  perf jit: genelf makes assumptions about endian
  perf hists: Fix determination of a callchain node's childlessness
  perf tools: Add missing initialization of perf_sample.cpumode in synthesized samples
  perf tools: Fix build break on powerpc
  perf/x86: Move events_sysfs_show() outside CPU_SUP_INTEL
  perf bench: Fix detached tarball building due to missing 'perf bench memcpy' headers
  perf tests: Fix tarpkg build test error output redirection

1  2 
arch/x86/events/perf_event.h

@@@ -607,11 -607,6 +607,11 @@@ struct x86_pmu 
         */
        atomic_t        lbr_exclusive[x86_lbr_exclusive_max];
  
 +      /*
 +       * AMD bits
 +       */
 +      unsigned int    amd_nb_constraints : 1;
 +
        /*
         * Extra registers for events
         */
@@@ -800,6 -795,9 +800,9 @@@ ssize_t intel_event_sysfs_show(char *pa
  
  struct attribute **merge_attr(struct attribute **a, struct attribute **b);
  
+ ssize_t events_sysfs_show(struct device *dev, struct device_attribute *attr,
+                         char *page);
  #ifdef CONFIG_CPU_SUP_AMD
  
  int amd_pmu_init(void);
@@@ -930,9 -928,6 +933,6 @@@ int p6_pmu_init(void)
  
  int knc_pmu_init(void);
  
- ssize_t events_sysfs_show(struct device *dev, struct device_attribute *attr,
-                         char *page);
  static inline int is_ht_workaround_enabled(void)
  {
        return !!(x86_pmu.flags & PMU_FL_EXCL_ENABLED);