aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorSrikar Dronamraju <srikar@linux.vnet.ibm.com>2012-03-12 05:25:14 -0400
committerIngo Molnar <mingo@elte.hu>2012-03-13 01:22:20 -0400
commit900771a483ef28915a48066d7895d8252315607a (patch)
tree08941df642cc6bb61ef764b3344c87790c831145 /kernel
parent35aa621b5ab9d08767f7bc8d209b696df281d715 (diff)
uprobes/core: Make macro names consistent
Rename macros that refer to individual uprobe to start with UPROBE_ instead of UPROBES_. This is pure cleanup, no functional change intended. Signed-off-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com> Cc: Jim Keniston <jkenisto@linux.vnet.ibm.com> Cc: Linux-mm <linux-mm@kvack.org> Cc: Oleg Nesterov <oleg@redhat.com> Cc: Andi Kleen <andi@firstfloor.org> Cc: Christoph Hellwig <hch@infradead.org> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Arnaldo Carvalho de Melo <acme@infradead.org> Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/20120312092514.5379.36595.sendpatchset@srdronam.in.ibm.com Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/events/uprobes.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/kernel/events/uprobes.c b/kernel/events/uprobes.c
index 5ce32e3ae9e9..0d36bf3920ba 100644
--- a/kernel/events/uprobes.c
+++ b/kernel/events/uprobes.c
@@ -177,7 +177,7 @@ out:
177 */ 177 */
178bool __weak is_bkpt_insn(uprobe_opcode_t *insn) 178bool __weak is_bkpt_insn(uprobe_opcode_t *insn)
179{ 179{
180 return *insn == UPROBES_BKPT_INSN; 180 return *insn == UPROBE_BKPT_INSN;
181} 181}
182 182
183/* 183/*
@@ -259,8 +259,8 @@ static int write_opcode(struct mm_struct *mm, struct arch_uprobe *auprobe,
259 259
260 /* poke the new insn in, ASSUMES we don't cross page boundary */ 260 /* poke the new insn in, ASSUMES we don't cross page boundary */
261 vaddr &= ~PAGE_MASK; 261 vaddr &= ~PAGE_MASK;
262 BUG_ON(vaddr + UPROBES_BKPT_INSN_SIZE > PAGE_SIZE); 262 BUG_ON(vaddr + UPROBE_BKPT_INSN_SIZE > PAGE_SIZE);
263 memcpy(vaddr_new + vaddr, &opcode, UPROBES_BKPT_INSN_SIZE); 263 memcpy(vaddr_new + vaddr, &opcode, UPROBE_BKPT_INSN_SIZE);
264 264
265 kunmap_atomic(vaddr_new); 265 kunmap_atomic(vaddr_new);
266 kunmap_atomic(vaddr_old); 266 kunmap_atomic(vaddr_old);
@@ -308,7 +308,7 @@ static int read_opcode(struct mm_struct *mm, unsigned long vaddr, uprobe_opcode_
308 lock_page(page); 308 lock_page(page);
309 vaddr_new = kmap_atomic(page); 309 vaddr_new = kmap_atomic(page);
310 vaddr &= ~PAGE_MASK; 310 vaddr &= ~PAGE_MASK;
311 memcpy(opcode, vaddr_new + vaddr, UPROBES_BKPT_INSN_SIZE); 311 memcpy(opcode, vaddr_new + vaddr, UPROBE_BKPT_INSN_SIZE);
312 kunmap_atomic(vaddr_new); 312 kunmap_atomic(vaddr_new);
313 unlock_page(page); 313 unlock_page(page);
314 314
@@ -352,7 +352,7 @@ int __weak set_bkpt(struct mm_struct *mm, struct arch_uprobe *auprobe, unsigned
352 if (result) 352 if (result)
353 return result; 353 return result;
354 354
355 return write_opcode(mm, auprobe, vaddr, UPROBES_BKPT_INSN); 355 return write_opcode(mm, auprobe, vaddr, UPROBE_BKPT_INSN);
356} 356}
357 357
358/** 358/**
@@ -635,7 +635,7 @@ static int install_breakpoint(struct mm_struct *mm, struct uprobe *uprobe,
635 635
636 addr = (unsigned long)vaddr; 636 addr = (unsigned long)vaddr;
637 637
638 if (!(uprobe->flags & UPROBES_COPY_INSN)) { 638 if (!(uprobe->flags & UPROBE_COPY_INSN)) {
639 ret = copy_insn(uprobe, vma, addr); 639 ret = copy_insn(uprobe, vma, addr);
640 if (ret) 640 if (ret)
641 return ret; 641 return ret;
@@ -647,7 +647,7 @@ static int install_breakpoint(struct mm_struct *mm, struct uprobe *uprobe,
647 if (ret) 647 if (ret)
648 return ret; 648 return ret;
649 649
650 uprobe->flags |= UPROBES_COPY_INSN; 650 uprobe->flags |= UPROBE_COPY_INSN;
651 } 651 }
652 ret = set_bkpt(mm, &uprobe->arch, addr); 652 ret = set_bkpt(mm, &uprobe->arch, addr);
653 653
@@ -857,7 +857,7 @@ int uprobe_register(struct inode *inode, loff_t offset, struct uprobe_consumer *
857 uprobe->consumers = NULL; 857 uprobe->consumers = NULL;
858 __uprobe_unregister(uprobe); 858 __uprobe_unregister(uprobe);
859 } else { 859 } else {
860 uprobe->flags |= UPROBES_RUN_HANDLER; 860 uprobe->flags |= UPROBE_RUN_HANDLER;
861 } 861 }
862 } 862 }
863 863
@@ -889,7 +889,7 @@ void uprobe_unregister(struct inode *inode, loff_t offset, struct uprobe_consume
889 if (consumer_del(uprobe, consumer)) { 889 if (consumer_del(uprobe, consumer)) {
890 if (!uprobe->consumers) { 890 if (!uprobe->consumers) {
891 __uprobe_unregister(uprobe); 891 __uprobe_unregister(uprobe);
892 uprobe->flags &= ~UPROBES_RUN_HANDLER; 892 uprobe->flags &= ~UPROBE_RUN_HANDLER;
893 } 893 }
894 } 894 }
895 895