mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
Merge branch 'core-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'core-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: futex: Fix WARN_ON() test for UP WARN_ON_SMP(): Allow use in if() statements on UP x86, dumpstack: Use %pB format specifier for stack trace vsprintf: Introduce %pB format specifier lockdep: Remove unused 'factor' variable from lockdep_stats_show()
This commit is contained in:
commit
94df491c4a
7 changed files with 85 additions and 16 deletions
|
@ -433,7 +433,9 @@ char *symbol_string(char *buf, char *end, void *ptr,
|
|||
unsigned long value = (unsigned long) ptr;
|
||||
#ifdef CONFIG_KALLSYMS
|
||||
char sym[KSYM_SYMBOL_LEN];
|
||||
if (ext != 'f' && ext != 's')
|
||||
if (ext == 'B')
|
||||
sprint_backtrace(sym, value);
|
||||
else if (ext != 'f' && ext != 's')
|
||||
sprint_symbol(sym, value);
|
||||
else
|
||||
kallsyms_lookup(value, NULL, NULL, NULL, sym);
|
||||
|
@ -808,6 +810,7 @@ int kptr_restrict = 1;
|
|||
* - 'f' For simple symbolic function names without offset
|
||||
* - 'S' For symbolic direct pointers with offset
|
||||
* - 's' For symbolic direct pointers without offset
|
||||
* - 'B' For backtraced symbolic direct pointers with offset
|
||||
* - 'R' For decoded struct resource, e.g., [mem 0x0-0x1f 64bit pref]
|
||||
* - 'r' For raw struct resource, e.g., [mem 0x0-0x1f flags 0x201]
|
||||
* - 'M' For a 6-byte MAC address, it prints the address in the
|
||||
|
@ -867,6 +870,7 @@ char *pointer(const char *fmt, char *buf, char *end, void *ptr,
|
|||
/* Fallthrough */
|
||||
case 'S':
|
||||
case 's':
|
||||
case 'B':
|
||||
return symbol_string(buf, end, ptr, spec, *fmt);
|
||||
case 'R':
|
||||
case 'r':
|
||||
|
@ -1134,6 +1138,7 @@ qualifier:
|
|||
* %ps output the name of a text symbol without offset
|
||||
* %pF output the name of a function pointer with its offset
|
||||
* %pf output the name of a function pointer without its offset
|
||||
* %pB output the name of a backtrace symbol with its offset
|
||||
* %pR output the address range in a struct resource with decoded flags
|
||||
* %pr output the address range in a struct resource with raw flags
|
||||
* %pM output a 6-byte MAC address with colons
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue