aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2009-12-05 01:06:10 -0500
committerFrederic Weisbecker <fweisbec@gmail.com>2009-12-06 02:27:17 -0500
commit2f0993e0fb663c49e4d1e02654f6203246be4817 (patch)
tree90d34048d453c25364b8ea41e6c2028a8621bd39 /kernel
parent9cef30815b0f5b76e94a58d7674fcbf824d95579 (diff)
hw-breakpoints: Drop callback and task parameters from modify helper
Drop the callback and task parameters from modify_user_hw_breakpoint(). For now we have no user that need to modify a breakpoint to the point of changing its handler or its task context. Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Cc: "K. Prasad" <prasad@linux.vnet.ibm.com>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/hw_breakpoint.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/kernel/hw_breakpoint.c b/kernel/hw_breakpoint.c
index cf5ee1628411..2d10b012828f 100644
--- a/kernel/hw_breakpoint.c
+++ b/kernel/hw_breakpoint.c
@@ -312,9 +312,7 @@ EXPORT_SYMBOL_GPL(register_user_hw_breakpoint);
312 * @tsk: pointer to 'task_struct' of the process to which the address belongs 312 * @tsk: pointer to 'task_struct' of the process to which the address belongs
313 */ 313 */
314struct perf_event * 314struct perf_event *
315modify_user_hw_breakpoint(struct perf_event *bp, struct perf_event_attr *attr, 315modify_user_hw_breakpoint(struct perf_event *bp, struct perf_event_attr *attr)
316 perf_callback_t triggered,
317 struct task_struct *tsk)
318{ 316{
319 /* 317 /*
320 * FIXME: do it without unregistering 318 * FIXME: do it without unregistering
@@ -323,7 +321,8 @@ modify_user_hw_breakpoint(struct perf_event *bp, struct perf_event_attr *attr,
323 */ 321 */
324 unregister_hw_breakpoint(bp); 322 unregister_hw_breakpoint(bp);
325 323
326 return perf_event_create_kernel_counter(attr, -1, tsk->pid, triggered); 324 return perf_event_create_kernel_counter(attr, -1, bp->ctx->task->pid,
325 bp->callback);
327} 326}
328EXPORT_SYMBOL_GPL(modify_user_hw_breakpoint); 327EXPORT_SYMBOL_GPL(modify_user_hw_breakpoint);
329 328