FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Crash Utility

 
 
LinkBack Thread Tools
 
Old 11-08-2010, 03:59 AM
Toshikazu Nakayama
 
Default update cmd_p().

crash> p hoge => failed
p: gdb request failed: p hoge

crash> p per_cpu__hoge => success
PER-CPU DATA TYPE:
long unsigned int per_cpu__hoge;
PER-CPU ADDRESSES:
[0]: 10008af0890
:
:

When symbol_search() was failed, did not try per_cpu_symbol_search().
Try it for legacy percpu symbol (per_cpu__ prefix can disappear).

Signed-off-by: Toshikazu Nakayama <nakayama.ts@ncos.nec.co.jp>
---
symbols.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/symbols.c b/symbols.c
index 4b4a0e3..b883e83 100755
--- a/symbols.c
+++ b/symbols.c
@@ -5666,7 +5666,10 @@ cmd_p(void)
leader = strlen(buf2);
if (module_symbol(sp->value, NULL, NULL, NULL, *gdb_output_radix))
do_load_module_filter = TRUE;
- } else if (st->flags & LOAD_MODULE_SYMS)
+ } else if ((percpu_sp = per_cpu_symbol_search(args[optind])) &&
+ display_per_cpu_info(percpu_sp))
+ return;
+ else if (st->flags & LOAD_MODULE_SYMS)
do_load_module_filter = TRUE;

if (leader || do_load_module_filter)
--
1.7.3.2.161.g3089c

--
Crash-utility mailing list
Crash-utility@redhat.com
https://www.redhat.com/mailman/listinfo/crash-utility
 

Thread Tools




All times are GMT. The time now is 03:53 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org