projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bfd9c14
)
powerpc/xmon: symbol lookup length fixed
author
Mukesh Kumar Chaurasiya
<mchauras@linux.ibm.com>
Thu, 24 Oct 2024 19:12:33 +0000
(
00:42
+0530)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Thu, 14 Nov 2024 11:36:14 +0000
(22:36 +1100)
Currently this cannot lookup symbol beyond 64 characters in some cases
like "ls", "lp" and "t"
Fix this by using KSYM_NAME_LEN instead of fixed 64 characters
Signed-off-by: Mukesh Kumar Chaurasiya <mchauras@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link:
https://patch.msgid.link/20241024191232.1570894-2-mchauras@linux.ibm.com
arch/powerpc/xmon/xmon.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/xmon/xmon.c
b/arch/powerpc/xmon/xmon.c
index
e6cddbb
..
22b8b5c
100644
(file)
--- a/
arch/powerpc/xmon/xmon.c
+++ b/
arch/powerpc/xmon/xmon.c
@@
-3662,7
+3662,7
@@
symbol_lookup(void)
int type = inchar();
unsigned long addr, cpu;
void __percpu *ptr = NULL;
- static char tmp[
64
];
+ static char tmp[
KSYM_NAME_LEN
];
switch (type) {
case 'a':
@@
-3671,7
+3671,7
@@
symbol_lookup(void)
termch = 0;
break;
case 's':
- getstring(tmp,
64
);
+ getstring(tmp,
KSYM_NAME_LEN
);
if (setjmp(bus_error_jmp) == 0) {
catch_memory_errors = 1;
sync();
@@
-3686,7
+3686,7
@@
symbol_lookup(void)
termch = 0;
break;
case 'p':
- getstring(tmp,
64
);
+ getstring(tmp,
KSYM_NAME_LEN
);
if (setjmp(bus_error_jmp) == 0) {
catch_memory_errors = 1;
sync();