login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
December
»
23
Re: buggy perf callgraph output
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Frederic Weisbecker
Subject:
Re: buggy perf callgraph output
Date: Thursday, December 23, 2010 - 6:35 am
On Thu, Dec 23, 2010 at 02:08:20PM +0100, Ingo Molnar wrote:
quoted text
> > * Frederic Weisbecker <fweisbec@gmail.com> wrote: > > > On Fri, Dec 17, 2010 at 04:32:58PM +1100, Nick Piggin wrote: > > > That would be great, thanks! It's a really awesome tool, I appreciate > > > your effort on it. > > > > Thanks :) > > > > So the below patch should fix the issue. Tell me if you encounter it > > again, or anything else. > > > > diff --git a/tools/perf/util/hist.c b/tools/perf/util/hist.c > > index d503670..c749ba6 100644 > > --- a/tools/perf/util/hist.c > > +++ b/tools/perf/util/hist.c > > @@ -356,7 +356,7 @@ static size_t ipchain__fprintf_graph_line(FILE *fp, int depth, int depth_mask, > > > > static size_t ipchain__fprintf_graph(FILE *fp, struct callchain_list *chain, > > int depth, int depth_mask, int period, > > - u64 total_samples, int hits, > > + u64 total_samples, u64 hits, > > int left_margin) > > Hmm ... nice fix but why didnt GCC warn about the loss of half of the 'cumul' bits > in this call: > > ret += ipchain__fprintf_graph(fp, chain, depth, > new_depth_mask, i++, > new_total, > cumul, > left_margin); > > We really, really want GCC to warn about this - it's such a common mistake. What > disabled that warning? Very weird.
No idea. I thought perf had that in its warning arsenal :)
quoted text
> > Thanks, > > Ingo
--
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:
buggy perf callgraph output
, Nick Piggin
, (Wed Dec 8, 9:40 am)
Re: buggy perf callgraph output
, Frederic Weisbecker
, (Wed Dec 8, 2:48 pm)
Re: buggy perf callgraph output
, Nick Piggin
, (Wed Dec 15, 6:02 am)
Re: buggy perf callgraph output
, Frederic Weisbecker
, (Thu Dec 16, 4:47 am)
Re: buggy perf callgraph output
, Nick Piggin
, (Thu Dec 16, 10:32 pm)
Re: buggy perf callgraph output
, Frederic Weisbecker
, (Thu Dec 23, 5:55 am)
Re: buggy perf callgraph output
, Ingo Molnar
, (Thu Dec 23, 6:08 am)
Re: buggy perf callgraph output
, Frederic Weisbecker
, (Thu Dec 23, 6:35 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Paul Turner
[tg_shares_up rewrite v4 11/11] sched: update tg->shares after cpu.shares write
Mr. James W. Laferriere
Re: Linux 2.6.25-rc1 , syntax error near unexpected token `;'
Chuck Ebbert
Re: PCI: Unable to reserve mem region problem
Linus Torvalds
Linux 2.6.34-rc4
Mingming Cao
Re: [RFC 1/4] Large Blocksize support for Ext2/3/4
git
:
Ralf Wildenhues
[PATCH] Fix typos in the documentation
Len Brown
Re: fatal: unable to create '.git/index': File exists
Adeodato
Bazaar's patience diff as GIT_EXTERNAL_DIFF
Denis Bueno
Git clone error
Johannes Schindelin
Re: [PATCH 2/4] Add functions get_relative_cwd() and is_inside_dir()
git-commits-head
:
Linux Kernel Mailing List
ASoC: fix registration of the SoC card in the Freescale MPC8610 drivers
Linux Kernel Mailing List
drivers/acpi: use kasprintf
Linux Kernel Mailing List
nfsd41: sanity check client drc maxreqs
Linux Kernel Mailing List
bnx2x: Moving includes
Linux Kernel Mailing List
V4L/DVB: gspca - sonixj: Adjust minor values of sensor ov7630. - set the color ga...
openbsd-misc
:
Sevan / Venture37
Re: This is what Linus Torvalds calls openBSD crowd
Netmaffia.hu
Tini Lányok AKCIÓBAN OTTHON
Sam Fourman Jr.
Re: Help with Altell PC6700
Siju George
This is what Linus Torvalds calls openBSD crowd
Darrin Chandler
Re: OT: Python (was Re: vi in /bin)
linux-netdev
:
Kurt Van Dijck
Re: [PATCH net-next-2.6 1/2] can: add driver for Softing card
Eric Dumazet
Re: [PATCH net-next-2.6] net: Introduce skb_orphan_try()
Jamie Lokier
Re: POHMELFS high performance network filesystem. Transactions, failover, performa...
Jarek Poplawski
Re: socket api problem: can't bind an ipv6 socket to ::ffff:0.0.0.0
David Miller
Re: [PATCH v2] net: typos in comments in include/linux/igmp.h
Colocation donated by:
Syndicate