File tree Expand file tree Collapse file tree 2 files changed +16
-19
lines changed Expand file tree Collapse file tree 2 files changed +16
-19
lines changed Original file line number Diff line number Diff line change @@ -429,3 +429,19 @@ void hw_breakpoint_pmu_read(struct perf_event *bp)
429
429
{
430
430
/* TODO */
431
431
}
432
+
433
+ void ptrace_triggered (struct perf_event * bp ,
434
+ struct perf_sample_data * data , struct pt_regs * regs )
435
+ {
436
+ struct perf_event_attr attr ;
437
+
438
+ /*
439
+ * Disable the breakpoint request here since ptrace has defined a
440
+ * one-shot behaviour for breakpoint exceptions in PPC64.
441
+ * The SIGTRAP signal is generated automatically for us in do_dabr().
442
+ * We don't have to do anything about that here
443
+ */
444
+ attr = bp -> attr ;
445
+ attr .disabled = true;
446
+ modify_user_hw_breakpoint (bp , & attr );
447
+ }
Original file line number Diff line number Diff line change 18
18
#include <linux/regset.h>
19
19
#include <linux/tracehook.h>
20
20
#include <linux/audit.h>
21
- #include <linux/hw_breakpoint.h>
22
21
#include <linux/context_tracking.h>
23
22
#include <linux/syscalls.h>
24
23
31
30
32
31
#include "ptrace-decl.h"
33
32
34
- #ifdef CONFIG_HAVE_HW_BREAKPOINT
35
- void ptrace_triggered (struct perf_event * bp ,
36
- struct perf_sample_data * data , struct pt_regs * regs )
37
- {
38
- struct perf_event_attr attr ;
39
-
40
- /*
41
- * Disable the breakpoint request here since ptrace has defined a
42
- * one-shot behaviour for breakpoint exceptions in PPC64.
43
- * The SIGTRAP signal is generated automatically for us in do_dabr().
44
- * We don't have to do anything about that here
45
- */
46
- attr = bp -> attr ;
47
- attr .disabled = true;
48
- modify_user_hw_breakpoint (bp , & attr );
49
- }
50
- #endif /* CONFIG_HAVE_HW_BREAKPOINT */
51
-
52
33
/*
53
34
* Called by kernel/ptrace.c when detaching..
54
35
*
You can’t perform that action at this time.
0 commit comments