Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191055
b: refs/heads/master
c: 30a813a
h: refs/heads/master
i:
  191053: 97f02b3
  191051: ed33727
  191047: 7d7d512
  191039: fc0de9e
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Mar 10, 2010
1 parent a7570a8 commit 6a4f288
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 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: 7e1a40dda619b0483fbe0740494ed2c2a1f05289
refs/heads/master: 30a813ae035d3e220a89609adce878e045c49547
2 changes: 2 additions & 0 deletions trunk/arch/x86/include/asm/insn.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ struct insn {
const insn_byte_t *next_byte;
};

#define MAX_INSN_SIZE 16

#define X86_MODRM_MOD(modrm) (((modrm) & 0xc0) >> 6)
#define X86_MODRM_REG(modrm) (((modrm) & 0x38) >> 3)
#define X86_MODRM_RM(modrm) ((modrm) & 0x07)
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/x86/include/asm/kprobes.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include <linux/types.h>
#include <linux/ptrace.h>
#include <linux/percpu.h>
#include <asm/insn.h>

#define __ARCH_WANT_KPROBES_INSN_SLOT

Expand All @@ -36,7 +37,6 @@ typedef u8 kprobe_opcode_t;
#define RELATIVEJUMP_SIZE 5
#define RELATIVECALL_OPCODE 0xe8
#define RELATIVE_ADDR_SIZE 4
#define MAX_INSN_SIZE 16
#define MAX_STACK_SIZE 64
#define MIN_STACK_SIZE(ADDR) \
(((MAX_STACK_SIZE) < (((unsigned long)current_thread_info()) + \
Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/x86/kernel/cpu/perf_event_intel_ds.c
Original file line number Diff line number Diff line change
Expand Up @@ -379,8 +379,6 @@ static void intel_pmu_pebs_disable_all(void)

#include <asm/insn.h>

#define MAX_INSN_SIZE 16

static inline bool kernel_ip(unsigned long ip)
{
#ifdef CONFIG_X86_32
Expand Down

0 comments on commit 6a4f288

Please sign in to comment.