Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 121869
b: refs/heads/master
c: 908cd2d
h: refs/heads/master
i:
  121867: 0ea3612
v: v3
  • Loading branch information
Alexey Dobriyan authored and David S. Miller committed Nov 17, 2008
1 parent 268f220 commit 6dab264
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 31 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: 5635c10d976716ef47ae441998aeae144c7e7387
refs/heads/master: 908cd2dabbfbbefb02f6b908a1188a62e685136a
32 changes: 2 additions & 30 deletions trunk/net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@
#include <linux/init.h>
#include <linux/kmod.h>
#include <linux/module.h>
#include <linux/kallsyms.h>
#include <linux/netpoll.h>
#include <linux/rcupdate.h>
#include <linux/delay.h>
Expand Down Expand Up @@ -2801,31 +2800,6 @@ static void ptype_seq_stop(struct seq_file *seq, void *v)
rcu_read_unlock();
}

static void ptype_seq_decode(struct seq_file *seq, void *sym)
{
#ifdef CONFIG_KALLSYMS
unsigned long offset = 0, symsize;
const char *symname;
char *modname;
char namebuf[128];

symname = kallsyms_lookup((unsigned long)sym, &symsize, &offset,
&modname, namebuf);

if (symname) {
char *delim = ":";

if (!modname)
modname = delim = "";
seq_printf(seq, "%s%s%s%s+0x%lx", delim, modname, delim,
symname, offset);
return;
}
#endif

seq_printf(seq, "[%p]", sym);
}

static int ptype_seq_show(struct seq_file *seq, void *v)
{
struct packet_type *pt = v;
Expand All @@ -2838,10 +2812,8 @@ static int ptype_seq_show(struct seq_file *seq, void *v)
else
seq_printf(seq, "%04x", ntohs(pt->type));

seq_printf(seq, " %-8s ",
pt->dev ? pt->dev->name : "");
ptype_seq_decode(seq, pt->func);
seq_putc(seq, '\n');
seq_printf(seq, " %-8s %pF\n",
pt->dev ? pt->dev->name : "", pt->func);
}

return 0;
Expand Down

0 comments on commit 6dab264

Please sign in to comment.