Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 227233
b: refs/heads/master
c: 371db06
h: refs/heads/master
i:
  227231: b798586
v: v3
  • Loading branch information
Martin Schwidefsky authored and Martin Schwidefsky committed Jan 5, 2011
1 parent 682d967 commit d7d6505
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 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: b9599798f953084774da926caa8bafd7e244948e
refs/heads/master: 371db06b017c518da2d69ae278c5978ebcd1041a
3 changes: 1 addition & 2 deletions trunk/arch/s390/include/asm/kprobes.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
#include <linux/ptrace.h>
#include <linux/percpu.h>

#define __ARCH_WANT_KPROBES_INSN_SLOT
struct pt_regs;
struct kprobe;

Expand All @@ -58,7 +57,7 @@ typedef u16 kprobe_opcode_t;
/* Architecture specific copy of original instruction */
struct arch_specific_insn {
/* copy of original instruction */
kprobe_opcode_t *insn;
kprobe_opcode_t insn[MAX_INSN_SIZE];
};

struct prev_kprobe {
Expand Down
8 changes: 0 additions & 8 deletions trunk/arch/s390/kernel/kprobes.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,6 @@ int __kprobes arch_prepare_kprobe(struct kprobe *p)
if (is_prohibited_opcode((kprobe_opcode_t *) p->addr))
return -EINVAL;

/* Use the get_insn_slot() facility for correctness */
if (!(p->ainsn.insn = get_insn_slot()))
return -ENOMEM;

p->opcode = *p->addr;
memcpy(p->ainsn.insn, p->addr, ((p->opcode >> 14) + 3) & -2);

Expand Down Expand Up @@ -173,10 +169,6 @@ void __kprobes arch_disarm_kprobe(struct kprobe *p)

void __kprobes arch_remove_kprobe(struct kprobe *p)
{
if (p->ainsn.insn) {
free_insn_slot(p->ainsn.insn, 0);
p->ainsn.insn = NULL;
}
}

static void __kprobes enable_singlestep(struct kprobe_ctlblk *kcb,
Expand Down

0 comments on commit d7d6505

Please sign in to comment.