Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191272
b: refs/heads/master
c: 87e9b20
h: refs/heads/master
v: v3
  • Loading branch information
Frederic Weisbecker committed May 1, 2010
1 parent 955e80a commit e93c4b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 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: 73266fc1df2f94cf72b3beba3eee3b88ed0b0664
refs/heads/master: 87e9b2024659c614a876ce359a57e98a47b5ef37
12 changes: 1 addition & 11 deletions trunk/kernel/hw_breakpoint.c
Original file line number Diff line number Diff line change
Expand Up @@ -316,17 +316,7 @@ int register_perf_hw_breakpoint(struct perf_event *bp)
if (ret)
return ret;

/*
* Ptrace breakpoints can be temporary perf events only
* meant to reserve a slot. In this case, it is created disabled and
* we don't want to check the params right now (as we put a null addr)
* But perf tools create events as disabled and we want to check
* the params for them.
* This is a quick hack that will be removed soon, once we remove
* the tmp breakpoints from ptrace
*/
if (!bp->attr.disabled || !bp->overflow_handler)
ret = arch_validate_hwbkpt_settings(bp, bp->ctx->task);
ret = arch_validate_hwbkpt_settings(bp, bp->ctx->task);

/* if arch_validate_hwbkpt_settings() fails then release bp slot */
if (ret)
Expand Down

0 comments on commit e93c4b5

Please sign in to comment.