kprobes: use KSYM_NAME_LEN to size identifier buffers
Use KSYM_NAME_LEN to size identifier buffers, so that it can be easier increased. Signed-off-by: Joe Mario <jmario@redhat.com> Signed-off-by: Andi Kleen <ak@linux.intel.com> Acked-by: Ananth N Mavinakayanahalli <ananth@in.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
9ba4bcb645
commit
ab76786561
1 changed files with 2 additions and 2 deletions
|
@ -2066,7 +2066,7 @@ static int __init init_kprobes(void)
|
||||||
{
|
{
|
||||||
int i, err = 0;
|
int i, err = 0;
|
||||||
unsigned long offset = 0, size = 0;
|
unsigned long offset = 0, size = 0;
|
||||||
char *modname, namebuf[128];
|
char *modname, namebuf[KSYM_NAME_LEN];
|
||||||
const char *symbol_name;
|
const char *symbol_name;
|
||||||
void *addr;
|
void *addr;
|
||||||
struct kprobe_blackpoint *kb;
|
struct kprobe_blackpoint *kb;
|
||||||
|
@ -2192,7 +2192,7 @@ static int __kprobes show_kprobe_addr(struct seq_file *pi, void *v)
|
||||||
const char *sym = NULL;
|
const char *sym = NULL;
|
||||||
unsigned int i = *(loff_t *) v;
|
unsigned int i = *(loff_t *) v;
|
||||||
unsigned long offset = 0;
|
unsigned long offset = 0;
|
||||||
char *modname, namebuf[128];
|
char *modname, namebuf[KSYM_NAME_LEN];
|
||||||
|
|
||||||
head = &kprobe_table[i];
|
head = &kprobe_table[i];
|
||||||
preempt_disable();
|
preempt_disable();
|
||||||
|
|
Loading…
Reference in a new issue