Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 158403
b: refs/heads/master
c: 6f2f3cf
h: refs/heads/master
i:
  158401: 06640a3
  158399: 48f0504
v: v3
  • Loading branch information
Xiao Guangrong authored and Frederic Weisbecker committed Jul 17, 2009
1 parent 103ebf3 commit 4b8060c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 18 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: 79173bf556417a737e9d2e096e0788452ec30a61
refs/heads/master: 6f2f3cf00ee32f75ba007a46bab88a54d68a5deb
17 changes: 3 additions & 14 deletions trunk/kernel/trace/ftrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -1403,18 +1403,13 @@ static int t_hash_show(struct seq_file *m, void *v)
{
struct ftrace_func_probe *rec;
struct hlist_node *hnd = v;
char str[KSYM_SYMBOL_LEN];

rec = hlist_entry(hnd, struct ftrace_func_probe, node);

if (rec->ops->print)
return rec->ops->print(m, rec->ip, rec->ops, rec->data);

kallsyms_lookup(rec->ip, NULL, NULL, NULL, str);
seq_printf(m, "%s:", str);

kallsyms_lookup((unsigned long)rec->ops->func, NULL, NULL, NULL, str);
seq_printf(m, "%s", str);
seq_printf(m, "%pf:%pf", (void *)rec->ip, (void *)rec->ops->func);

if (rec->data)
seq_printf(m, ":%p", rec->data);
Expand Down Expand Up @@ -1512,7 +1507,6 @@ static int t_show(struct seq_file *m, void *v)
{
struct ftrace_iterator *iter = m->private;
struct dyn_ftrace *rec = v;
char str[KSYM_SYMBOL_LEN];

if (iter->flags & FTRACE_ITER_HASH)
return t_hash_show(m, v);
Expand All @@ -1525,9 +1519,7 @@ static int t_show(struct seq_file *m, void *v)
if (!rec)
return 0;

kallsyms_lookup(rec->ip, NULL, NULL, NULL, str);

seq_printf(m, "%s\n", str);
seq_printf(m, "%pf\n", (void *)rec->ip);

return 0;
}
Expand Down Expand Up @@ -2508,7 +2500,6 @@ static void g_stop(struct seq_file *m, void *p)
static int g_show(struct seq_file *m, void *v)
{
unsigned long *ptr = v;
char str[KSYM_SYMBOL_LEN];

if (!ptr)
return 0;
Expand All @@ -2518,9 +2509,7 @@ static int g_show(struct seq_file *m, void *v)
return 0;
}

kallsyms_lookup(*ptr, NULL, NULL, NULL, str);

seq_printf(m, "%s\n", str);
seq_printf(m, "%pf\n", v);

return 0;
}
Expand Down
4 changes: 1 addition & 3 deletions trunk/kernel/trace/trace_functions.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,11 +288,9 @@ static int
ftrace_trace_onoff_print(struct seq_file *m, unsigned long ip,
struct ftrace_probe_ops *ops, void *data)
{
char str[KSYM_SYMBOL_LEN];
long count = (long)data;

kallsyms_lookup(ip, NULL, NULL, NULL, str);
seq_printf(m, "%s:", str);
seq_printf(m, "%pf:", (void *)ip);

if (ops == &traceon_probe_ops)
seq_printf(m, "traceon");
Expand Down

0 comments on commit 4b8060c

Please sign in to comment.