Merge branch 'perf/urgent' into perf/core
authorIngo Molnar <mingo@kernel.org>
Thu, 29 Mar 2018 14:03:48 +0000 (16:03 +0200)
committerIngo Molnar <mingo@kernel.org>
Thu, 29 Mar 2018 14:03:48 +0000 (16:03 +0200)
Conflicts:
kernel/events/hw_breakpoint.c

Signed-off-by: Ingo Molnar <mingo@kernel.org>
1  2 
arch/x86/events/intel/ds.c
kernel/events/hw_breakpoint.c
kernel/trace/trace_kprobe.c
kernel/trace/trace_probe.h

Simple merge
@@@ -510,17 -441,21 +506,14 @@@ int modify_user_hw_breakpoint(struct pe
        else
                perf_event_disable(bp);
  
-       err = modify_user_hw_breakpoint_check(bp, attr, false);
 -      bp->attr.bp_addr = attr->bp_addr;
 -      bp->attr.bp_type = attr->bp_type;
 -      bp->attr.bp_len = attr->bp_len;
 -      bp->attr.disabled = 1;
--
-       if (err) {
-               if (!bp->attr.disabled)
-                       perf_event_enable(bp);
+       if (!attr->disabled) {
 -              int err = validate_hw_breakpoint(bp);
++              int err = modify_user_hw_breakpoint_check(bp, attr, false);
  
-               return err;
-       }
-       if (!attr->disabled)
+               if (err)
+                       return err;
 -
                perf_event_enable(bp);
 -
+               bp->attr.disabled = 0;
+       }
        return 0;
  }
  EXPORT_SYMBOL_GPL(modify_user_hw_breakpoint);
Simple merge
Simple merge