Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 169702
b: refs/heads/master
c: 687b16f
h: refs/heads/master
v: v3
  • Loading branch information
Frederic Weisbecker authored and Ingo Molnar committed Nov 13, 2009
1 parent a0aba39 commit 2afd1a1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 59d8eb53ea9947db7cad8ebc31b0fb54f23a9851
refs/heads/master: 687b16fb617bd446439425a368ad7c7bbd202c73
15 changes: 10 additions & 5 deletions trunk/include/linux/hw_breakpoint.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ enum {
HW_BREAKPOINT_X = 4,
};

static inline struct arch_hw_breakpoint *counter_arch_bp(struct perf_event *bp)
{
return &bp->hw.info;
}

static inline unsigned long hw_breakpoint_addr(struct perf_event *bp)
{
return bp->attr.bp_addr;
Expand Down Expand Up @@ -83,6 +78,11 @@ extern void release_bp_slot(struct perf_event *bp);

extern void flush_ptrace_hw_breakpoint(struct task_struct *tsk);

static inline struct arch_hw_breakpoint *counter_arch_bp(struct perf_event *bp)
{
return &bp->hw.info;
}

#else /* !CONFIG_HAVE_HW_BREAKPOINT */

static inline struct perf_event *
Expand Down Expand Up @@ -126,6 +126,11 @@ static inline void release_bp_slot(struct perf_event *bp) { }

static inline void flush_ptrace_hw_breakpoint(struct task_struct *tsk) { }

static inline struct arch_hw_breakpoint *counter_arch_bp(struct perf_event *bp)
{
return NULL;
}

#endif /* CONFIG_HAVE_HW_BREAKPOINT */

#endif /* _LINUX_HW_BREAKPOINT_H */

0 comments on commit 2afd1a1

Please sign in to comment.