diff options
author | Steven Rostedt <srostedt@redhat.com> | 2010-05-21 11:49:57 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2010-05-21 11:49:57 -0400 |
commit | ff5f149b6aec8edbfa3698721667acd043009a33 (patch) | |
tree | d052553eb296dfee3f01b1cb2b717cb7ccf3127a /scripts/mod/file2alias.c | |
parent | f0218b3e9974f06014b61be8987159f4a20e011e (diff) | |
parent | 580d607cd666dfabfc1c7b0fb08c8ac690c7c87f (diff) |
Merge branch 'perf/core' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip into trace/tip/tracing/core-7
Conflicts:
include/linux/ftrace_event.h
include/trace/ftrace.h
kernel/trace/trace_event_perf.c
kernel/trace/trace_kprobe.c
kernel/trace/trace_syscalls.c
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'scripts/mod/file2alias.c')
-rw-r--r-- | scripts/mod/file2alias.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c index 220213e603db..df90f31d14bf 100644 --- a/scripts/mod/file2alias.c +++ b/scripts/mod/file2alias.c | |||
@@ -796,6 +796,16 @@ static int do_platform_entry(const char *filename, | |||
796 | return 1; | 796 | return 1; |
797 | } | 797 | } |
798 | 798 | ||
799 | /* Looks like: zorro:iN. */ | ||
800 | static int do_zorro_entry(const char *filename, struct zorro_device_id *id, | ||
801 | char *alias) | ||
802 | { | ||
803 | id->id = TO_NATIVE(id->id); | ||
804 | strcpy(alias, "zorro:"); | ||
805 | ADD(alias, "i", id->id != ZORRO_WILDCARD, id->id); | ||
806 | return 1; | ||
807 | } | ||
808 | |||
799 | /* Ignore any prefix, eg. some architectures prepend _ */ | 809 | /* Ignore any prefix, eg. some architectures prepend _ */ |
800 | static inline int sym_is(const char *symbol, const char *name) | 810 | static inline int sym_is(const char *symbol, const char *name) |
801 | { | 811 | { |
@@ -943,6 +953,10 @@ void handle_moddevtable(struct module *mod, struct elf_info *info, | |||
943 | do_table(symval, sym->st_size, | 953 | do_table(symval, sym->st_size, |
944 | sizeof(struct platform_device_id), "platform", | 954 | sizeof(struct platform_device_id), "platform", |
945 | do_platform_entry, mod); | 955 | do_platform_entry, mod); |
956 | else if (sym_is(symname, "__mod_zorro_device_table")) | ||
957 | do_table(symval, sym->st_size, | ||
958 | sizeof(struct zorro_device_id), "zorro", | ||
959 | do_zorro_entry, mod); | ||
946 | free(zeros); | 960 | free(zeros); |
947 | } | 961 | } |
948 | 962 | ||