aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/kprobes.c
diff options
context:
space:
mode:
authorbibo,mao <bibo.mao@intel.com>2006-10-02 05:17:33 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-10-02 10:57:16 -0400
commit62c27be0dd8144e11bd3ed054a0fb890579925f8 (patch)
tree1884eaafd723059b903b81db513ca3bf5b06774b /arch/powerpc/kernel/kprobes.c
parent09b18203d772db318ef92f6908c439ee5a35a4f9 (diff)
[PATCH] kprobe whitespace cleanup
Whitespace is used to indent, this patch cleans up these sentences by kernel coding style. Signed-off-by: bibo, mao <bibo.mao@intel.com> Signed-off-by: Ananth N Mavinakayanahalli <ananth@in.ibm.com> Cc: "Luck, Tony" <tony.luck@intel.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/powerpc/kernel/kprobes.c')
-rw-r--r--arch/powerpc/kernel/kprobes.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/arch/powerpc/kernel/kprobes.c b/arch/powerpc/kernel/kprobes.c
index cd65c367b8b6..46d2fd0e5789 100644
--- a/arch/powerpc/kernel/kprobes.c
+++ b/arch/powerpc/kernel/kprobes.c
@@ -259,14 +259,14 @@ void kretprobe_trampoline_holder(void)
259 */ 259 */
260int __kprobes trampoline_probe_handler(struct kprobe *p, struct pt_regs *regs) 260int __kprobes trampoline_probe_handler(struct kprobe *p, struct pt_regs *regs)
261{ 261{
262 struct kretprobe_instance *ri = NULL; 262 struct kretprobe_instance *ri = NULL;
263 struct hlist_head *head; 263 struct hlist_head *head;
264 struct hlist_node *node, *tmp; 264 struct hlist_node *node, *tmp;
265 unsigned long flags, orig_ret_address = 0; 265 unsigned long flags, orig_ret_address = 0;
266 unsigned long trampoline_address =(unsigned long)&kretprobe_trampoline; 266 unsigned long trampoline_address =(unsigned long)&kretprobe_trampoline;
267 267
268 spin_lock_irqsave(&kretprobe_lock, flags); 268 spin_lock_irqsave(&kretprobe_lock, flags);
269 head = kretprobe_inst_table_head(current); 269 head = kretprobe_inst_table_head(current);
270 270
271 /* 271 /*
272 * It is possible to have multiple instances associated with a given 272 * It is possible to have multiple instances associated with a given
@@ -277,14 +277,14 @@ int __kprobes trampoline_probe_handler(struct kprobe *p, struct pt_regs *regs)
277 * We can handle this because: 277 * We can handle this because:
278 * - instances are always inserted at the head of the list 278 * - instances are always inserted at the head of the list
279 * - when multiple return probes are registered for the same 279 * - when multiple return probes are registered for the same
280 * function, the first instance's ret_addr will point to the 280 * function, the first instance's ret_addr will point to the
281 * real return address, and all the rest will point to 281 * real return address, and all the rest will point to
282 * kretprobe_trampoline 282 * kretprobe_trampoline
283 */ 283 */
284 hlist_for_each_entry_safe(ri, node, tmp, head, hlist) { 284 hlist_for_each_entry_safe(ri, node, tmp, head, hlist) {
285 if (ri->task != current) 285 if (ri->task != current)
286 /* another task is sharing our hash bucket */ 286 /* another task is sharing our hash bucket */
287 continue; 287 continue;
288 288
289 if (ri->rp && ri->rp->handler) 289 if (ri->rp && ri->rp->handler)
290 ri->rp->handler(ri, regs); 290 ri->rp->handler(ri, regs);
@@ -308,12 +308,12 @@ int __kprobes trampoline_probe_handler(struct kprobe *p, struct pt_regs *regs)
308 spin_unlock_irqrestore(&kretprobe_lock, flags); 308 spin_unlock_irqrestore(&kretprobe_lock, flags);
309 preempt_enable_no_resched(); 309 preempt_enable_no_resched();
310 310
311 /* 311 /*
312 * By returning a non-zero value, we are telling 312 * By returning a non-zero value, we are telling
313 * kprobe_handler() that we don't want the post_handler 313 * kprobe_handler() that we don't want the post_handler
314 * to run (and have re-enabled preemption) 314 * to run (and have re-enabled preemption)
315 */ 315 */
316 return 1; 316 return 1;
317} 317}
318 318
319/* 319/*