login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
November
»
23
Re: 'perf test' failed on ARM
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Arnaldo Carvalho de Melo
Subject:
Re: 'perf test' failed on ARM
Date: Tuesday, November 23, 2010 - 11:17 am
Em Tue, Nov 23, 2010 at 10:08:18PM +0530, Rabin Vincent escreveu:
quoted text
> On Tue, Nov 23, 2010 at 04:07:39PM +0800, Ming Lei wrote: > > 'perf test' is failed on linux 2.6.37-rc2/rc3, follows log info: > > > > root@beagleboard:/mnt/omap/linux-2.6-omap/tools/perf# ./perf test -v 3 > > 1: vmlinux symtab matches kallsyms: > > --- start --- > > dso__find_symbol_by_name ---- end ---- > > vmlinux symtab matches kallsyms: FAILED! > > > > Any suggestions? > > There seems to be a problem with the symbol handling code. Patch below. > With this patch the command executes further, but the test fails because > of other reasons: > > 1: vmlinux symtab matches kallsyms: > --- start --- > map_groups__set_modules_path_dir: cannot open /lib/modules/2.6.37-rc3-next-20101122+/kernel dir > Problems creating module maps, continuing anyway... > map_groups__set_modules_path_dir: cannot open /lib/modules/2.6.37-rc3-next-20101122+/kernel dir > Problems creating module maps, continuing anyway... > Looking at the vmlinux_path (6 entries long) > Using vmlinux for symbols > 0xc011ab68: diff end addr for __kprobes_text_start v: 0xc012b87f k: 0xc011b353 > 0xc012b880: kallsyms_addresses not on kallsyms > 0xc0138c90: kallsyms_num_syms not on kallsyms > 0xc0138ca0: kallsyms_names not on kallsyms > 0xc015c010: kallsyms_markers not on kallsyms > 0xc015c0f0: kallsyms_token_table not on kallsyms > 0xc015c490: kallsyms_token_index not on kallsyms > Maps only in vmlinux: > c0014c5c-ffffffff 0 [kernel].init > Maps in vmlinux with a different name in kallsyms: > Maps only in kallsyms: > ---- end ---- > vmlinux symtab matches kallsyms: FAILED! > > >From e48b8a0dc149e3b8f249f46dc6e9c25e2cc58601 Mon Sep 17 00:00:00 2001 > From: Rabin Vincent <rabin@rab.in> > Date: Tue, 23 Nov 2010 21:35:56 +0530 > Subject: [PATCH] perf symbols: remove incorrect open-coded container_of() > > At least on ARM, padding is inserted between rb_node and sym in struct > symbol_name_rb_node, causing "((void *)sym) - sizeof(struct rb_node)" to > point inside rb_node rather than to the symbol_name_rb_node. Fix this > by converting the code to use container_of(). > > Signed-off-by: Rabin Vincent <rabin@rab.in>
Ouch, thanks for the patch, container_of is much cleaner. - Arnaldo
quoted text
> tools/perf/util/symbol.c | 4 +++- > 1 files changed, 3 insertions(+), 1 deletions(-) > > diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c > index b39f499..0500895 100644 > --- a/tools/perf/util/symbol.c > +++ b/tools/perf/util/symbol.c > @@ -295,7 +295,9 @@ static void symbols__insert_by_name(struct rb_root *self, struct symbol *sym) > { > struct rb_node **p = &self->rb_node; > struct rb_node *parent = NULL; > - struct symbol_name_rb_node *symn = ((void *)sym) - sizeof(*parent), *s; > + struct symbol_name_rb_node *symn, *s; > + > + symn = container_of(sym, struct symbol_name_rb_node, sym); > > while (*p != NULL) { > parent = *p; > -- > 1.7.2.3
--
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
'perf test' failed on ARM
, Ming Lei
, (Tue Nov 23, 1:07 am)
Re: 'perf test' failed on ARM
, Rabin Vincent
, (Tue Nov 23, 9:38 am)
Re: 'perf test' failed on ARM
, Arnaldo Carvalho de Melo
, (Tue Nov 23, 11:17 am)
[tip:perf/urgent] perf symbols: Remove incorrect open-code ...
, tip-bot for Rabin Vi ...
, (Tue Nov 23, 12:52 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Alan Cox
Re: Please add ZFS support (from GPL sources)
Trenton D. Adams
Re: Flash IO slow 1.5 MB/s
Rafael J. Wysocki
[Bug #11287] Regression in 2.6.27-rc2 in acpi_processor_init()
Bart Van Assche
Re: Is gcc thread-unsafe?
Ingo Molnar
Re: [PATCH] x86: silence section mismatch warning - uv_cpu_init
git
:
Mark Junker
git on MacOSX and files with decomposed utf-8 file names
Junio C Hamano
Re: git-svnimport
Mark Burton
Re: Sporadic BSOD with msys git?
Junio C Hamano
Re: [PATCH] Detached HEAD (experimental)
Johannes Schindelin
Re: [PATCH] Fix approxidate("never") to always return 0
git-commits-head
:
Linux Kernel Mailing List
ath9k_htc: Allocate URBs properly
Linux Kernel Mailing List
net: don't grab a mutex within a timer context in gianfar
Linux Kernel Mailing List
[ARM] 4691/1: add missing i2c_board_info struct for at91rm9200
Linux Kernel Mailing List
powerpc/kexec: Add support for FSL-BookE
Linux Kernel Mailing List
V4L/DVB (8976): af9015: Add USB ID for AVerMedia A309
linux-netdev
:
David Miller
Re: [RFC 0/5] generic rx recycling
Daniel Lezcano
getsockopt(TCP_DEFER_ACCEPT) value change
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
Gerrit Renker
[PATCH 37/37] dccp: Debugging functions for feature negotiation
Jeff Garzik
Re: [PATCH] drivers/net: remove network drivers' last few uses of IRQF_SAMPLE_RANDOM
openbsd-misc
:
Christophe Rioux
Implementation example of snmp
Nick Holland
Re: booting openbsd on eee without cd-rom
Cabillot Julien
Re: OpenBSD isakmpd and pf vs Cisco PIX or ASA
Nice Daemon
Re: Bind ntpd on certain interface?
Marco Peereboom
Re: Singularity OS
Colocation donated by:
Syndicate