Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 150925 Details for
Bug 228540
Need to add gfs2_tool lockdump support to gfs2
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
The kallsyms patch for RHEL5 2.6.18-8.EL5 kernel
kallsyms.rhel5.patch (text/plain), 2.75 KB, created by
Robert Peterson
on 2007-03-26 18:13:44 UTC
(
hide
)
Description:
The kallsyms patch for RHEL5 2.6.18-8.EL5 kernel
Filename:
MIME Type:
Creator:
Robert Peterson
Created:
2007-03-26 18:13:44 UTC
Size:
2.75 KB
patch
obsolete
>--- linux-2.6.18.i686/include/linux/kallsyms.h 2006-09-19 22:42:06.000000000 -0500 >+++ linux-2.6.18.i686.patched/include/linux/kallsyms.h 2007-03-26 11:12:14.000000000 -0500 >@@ -7,6 +7,8 @@ > > > #define KSYM_NAME_LEN 127 >+#define KSYM_SYMBOL_LEN (sizeof("%s+%#lx/%#lx [%s]") + KSYM_NAME_LEN + \ >+ 2*(BITS_PER_LONG*3/10) + MODULE_NAME_LEN + 1) > > #ifdef CONFIG_KALLSYMS > /* Lookup the address for a symbol. Returns 0 if not found. */ >@@ -18,7 +20,10 @@ const char *kallsyms_lookup(unsigned lon > unsigned long *offset, > char **modname, char *namebuf); > >-/* Replace "%s" in format with address, if found */ >+/* Look up a kernel symbol and return it in a text buffer. */ >+extern int sprint_symbol(char *buffer, unsigned long address); >+ >+/* Look up a kernel symbol and print it to the kernel messages. */ > extern void __print_symbol(const char *fmt, unsigned long address); > > #else /* !CONFIG_KALLSYMS */ >@@ -36,6 +41,11 @@ static inline const char *kallsyms_looku > return NULL; > } > >+static inline void sprint_symbol(char *buffer, unsigned long addr) >+{ >+ return; >+} >+ > /* Stupid that this does nothing, but I didn't create this mess. */ > #define __print_symbol(fmt, addr) > #endif /*CONFIG_KALLSYMS*/ >--- linux-2.6.18.i686/kernel/kallsyms.c 2007-03-20 08:38:32.000000000 -0500 >+++ linux-2.6.18.i686.patched/kernel/kallsyms.c 2007-03-26 11:11:59.000000000 -0500 >@@ -229,27 +229,33 @@ const char *kallsyms_lookup(unsigned lon > return NULL; > } > >-/* Replace "%s" in format with address, or returns -errno. */ >-void __print_symbol(const char *fmt, unsigned long address) >+/* Look up a kernel symbol and return it in a text buffer. */ >+int sprint_symbol(char *buffer, unsigned long address) > { > char *modname; > const char *name; > unsigned long offset, size; > char namebuf[KSYM_NAME_LEN+1]; >- char buffer[sizeof("%s+%#lx/%#lx [%s]") + KSYM_NAME_LEN + >- 2*(BITS_PER_LONG*3/10) + MODULE_NAME_LEN + 1]; > > name = kallsyms_lookup(address, &size, &offset, &modname, namebuf); >- > if (!name) >- sprintf(buffer, "0x%lx", address); >+ return sprintf(buffer, "0x%lx", address); > else { > if (modname) >- sprintf(buffer, "%s+%#lx/%#lx [%s]", name, offset, >- size, modname); >+ return sprintf(buffer, "%s+%#lx/%#lx [%s]", name, >+ offset, size, modname); > else >- sprintf(buffer, "%s+%#lx/%#lx", name, offset, size); >+ return sprintf(buffer, "%s+%#lx/%#lx", name, offset, >+ size); > } >+} >+ >+/* Look up a kernel symbol and print it to the kernel messages. */ >+void __print_symbol(const char *fmt, unsigned long address) >+{ >+ char buffer[KSYM_SYMBOL_LEN]; >+ >+ sprint_symbol(buffer, address); > printk(fmt, buffer); > } > >@@ -418,3 +424,4 @@ static int __init kallsyms_init(void) > __initcall(kallsyms_init); > > EXPORT_SYMBOL(__print_symbol); >+EXPORT_SYMBOL_GPL(sprint_symbol);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 228540
:
148091
|
148880
|
149026
|
149854
|
150918
| 150925 |
150936
|
152978