|
@@ -1,8 +1,6 @@
|
|
#ifndef _LINUX_HW_BREAKPOINT_H
|
|
#ifndef _LINUX_HW_BREAKPOINT_H
|
|
#define _LINUX_HW_BREAKPOINT_H
|
|
#define _LINUX_HW_BREAKPOINT_H
|
|
|
|
|
|
-#include <linux/perf_event.h>
|
|
|
|
-
|
|
|
|
enum {
|
|
enum {
|
|
HW_BREAKPOINT_LEN_1 = 1,
|
|
HW_BREAKPOINT_LEN_1 = 1,
|
|
HW_BREAKPOINT_LEN_2 = 2,
|
|
HW_BREAKPOINT_LEN_2 = 2,
|
|
@@ -19,6 +17,8 @@ enum {
|
|
#ifdef __KERNEL__
|
|
#ifdef __KERNEL__
|
|
#ifdef CONFIG_HAVE_HW_BREAKPOINT
|
|
#ifdef CONFIG_HAVE_HW_BREAKPOINT
|
|
|
|
|
|
|
|
+#include <linux/perf_event.h>
|
|
|
|
+
|
|
static inline unsigned long hw_breakpoint_addr(struct perf_event *bp)
|
|
static inline unsigned long hw_breakpoint_addr(struct perf_event *bp)
|
|
{
|
|
{
|
|
return bp->attr.bp_addr;
|
|
return bp->attr.bp_addr;
|