Re: [Valgrind-users] 答复: hello there is a question about callgrind on the arm64.

2017-06-09 Thread Josef Weidendorfer
-邮件原件- 发件人: Josef Weidendorfer [mailto:josef.weidendor...@gmx.de] 发送时间: 2017年5月20日 6:24 收件人: valgrind-users@lists.sourceforge.net 主题: Re: [Valgrind-users] hello there is a question about callgrind on the arm64. Hi Owen, callgrind currently is somewhat broken on ARM, as the tracking of

Re: [Valgrind-users] hello there is a question about callgrind on the arm64.

2017-05-19 Thread Josef Weidendorfer
Hi Owen, callgrind currently is somewhat broken on ARM, as the tracking of entering/leaving functions is unreliable. Callgrind heavily uses the stack pointer for that. On x86, this works fine, as every call/return changes the SP, but on ARM, this is not the case. There are ideas and at some poin

Re: [Valgrind-users] trace function calls from individual objects in callgrind

2016-08-02 Thread Josef Weidendorfer
easy to accomplish what you want. Cheers, Josef commit c491556702cc3e6f6ebf34c838ce44c91ef9c259 Author: Josef Weidendorfer Date: Thu Jun 11 16:13:36 2009 +0200 Parameter sensitive profiling This works by creating a new fn_node with a name specifying the parameter condit

Re: [Valgrind-users] trace function calls from individual objects in callgrind

2016-07-29 Thread Josef Weidendorfer
Am 07.07.2016 um 14:59 schrieb E. G. Patrick Bos: > I'm using callgrind to analyse a c++ program (roofit) which builds a > large tree of many interdependent objects of a few classes. Ideally, I > would like to track not only the function calls, but also from (and to) > which object they are called,

Re: [Valgrind-users] Callgrind longest possible run

2016-07-12 Thread Josef Weidendorfer
Am 08.07.2016 um 01:03 schrieb Stepan Zakharov: > Hello, > If I remember correct, callgrind takes x30 overhead in general (when I > was running it). Usually , I had to run it on small tasks that won't > take more then a few minutes, so this was not a bother to me. > > But right now I am wonering if

Re: [Valgrind-users] How can callgrind_annotate output call times instead of instruction counts?

2016-07-05 Thread Josef Weidendorfer
Am 05.07.2016 um 03:22 schrieb Yang Liu: > I'm trying to get a call graph where the edge weights are call times > rather than instruction counts. I didn't find a clear documentation > though. The closest I got is some mentioning of event type. But I don't > see the event name for call times. Call

Re: [Valgrind-users] Merge multiple callgrind output files into one

2016-06-29 Thread Josef Weidendorfer
Am 27.06.2016 um 18:08 schrieb Ana Rey: > Is there a tool (like cg-merge) which can merge multiple callgrind > output files into one For {k,q}cachegrind, it's enough to 'cat' them together. For the callgrind_annotate script, this unfortunately does not work (the total sum calculation gets wrong).

Re: [Valgrind-users] How does callgrind detect loops?

2016-06-17 Thread Josef Weidendorfer
Hi, If you see a XXX'N in callgrind's output, this means that this is the profile for all invocations of function XXX at recursion level N. For level 1, suffix '1 is omitted. And there is one caveat: if you ask callgrind to only distinguish n levels, XXX'n will include all XXX'm with m > n. If yo

Re: [Valgrind-users] why miss rate decrease but number of misses increase in ubuntu 12 in vmware player 12 ?

2016-02-16 Thread Josef Weidendorfer
gt; ==3047== D1 miss rate: 2.0% ( 2.4% +0.9% ) > ==3047== LLd miss rate: 1.8% ( 2.2% +0.8% ) > ==3047== > ==3047== LL refs: 1,761 ( 1,616 rd +145 wr) > ==3047== LL misses: 1,663 ( 1,528 rd +135 wr) > ==3047== LL miss rate:

Re: [Valgrind-users] why miss rate decrease but number of misses increase in ubuntu 12 in vmware player 12 ?

2016-02-15 Thread Josef Weidendorfer
Am 15.02.2016 um 11:25 schrieb Mandy Martino: > why > > I1 misses increase, LLi misses increase, LL misses increase, D1 misses > increase > though miss rate decrease at this row 0.1% + 0.0% ? > > which indicator show the correct number that can show the improvement > after optimization

Re: [Valgrind-users] Using callgrind for getting cache misses and data reads of a python program

2015-12-18 Thread Josef Weidendorfer
Am 18.12.2015 um 14:50 schrieb Rohit Takhar: > Suppose I have a class |TEST| and there is a function |func()|. How can > I restrict callgrind to get information about this function only. I know > how to do it in C++, but it is not working in python. > I tried following > methods: |--toggle-collect=

Re: [Valgrind-users] Cachegrind - Tracing LLC misses

2015-09-28 Thread Josef Weidendorfer
Am 27.09.2015 um 20:02 schrieb Milian Wolff: > On Freitag, 25. September 2015 20:27:45 CEST martin wrote: >> Hello, >> >> I'm new to Cachegrind (and cache simulation in general). >> >> I'm trying to do a memory trace of my application, but only for >> operations that go to DRAM, that is, only if th

Re: [Valgrind-users] Cachegrind - Tracing LLC misses

2015-09-28 Thread Josef Weidendorfer
Am 25.09.2015 um 22:27 schrieb martin: > I'm trying to do a memory trace of my application, but only for > operations that go to DRAM, that is, only if there was a LLC miss > should I care. Is it possible to achieve that with Cachegrind? AFAICS, > it only counts the number of events (and wher

Re: [Valgrind-users] Counting instructions for specific part of my code using Callgrind

2015-09-07 Thread Josef Weidendorfer
Am 31.08.2015 um 17:10 schrieb Florian Krohm: > On 28.08.2015 09:03, Josef Weidendorfer wrote: > >> This suggests we should document the difference between >> START/STOP_INSTRUMENTAITON >> and TOGGLE_COLLECT better. > > Hmm, yes :) Any chance you can write somethi

Re: [Valgrind-users] Counting instructions for specific part of my code using Callgrind

2015-08-28 Thread Josef Weidendorfer
Am 27.08.2015 um 22:53 schrieb Philippe Waroquiers: > E.g. I think that stop instrumentation implies to flush the translation > cache. But the currently executed block will not be really flushed till > the block is exited. To my understanding, every client request forces a block to end. It is fine

Re: [Valgrind-users] Counting instructions for specific part of my code using Callgrind

2015-08-28 Thread Josef Weidendorfer
Hi Geoff, Am 27.08.2015 um 08:42 schrieb galexand...@nc.rr.com: > I would like to count instructions for a specific part of my code. > ... This suggests we should document the difference between START/STOP_INSTRUMENTAITON and TOGGLE_COLLECT better. Anyway. > for (int i = 1; i <= 1000; ++i)

Re: [Valgrind-users] Valgrind to profile CPython and Nuitka

2015-07-30 Thread Josef Weidendorfer
here, if you can. > > Yours, > Kay Hayen > > > -- > ___ > Valgrind-users mailing list > Valgrind-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/valgrind-users > -- Dr. Josef Weidendorfer, Informatik, Technische Universität München TUM I-

Re: [Valgrind-users] Documentation for callgrind text data file format?

2015-06-26 Thread Josef Weidendorfer
Am 29.05.2015 um 19:14 schrieb Dan Liew: > There's [1]. It's not complete though, It should be complete now in SVN :-) Josef -- Monitor 25 network devices or servers for free with OpManager! OpManager is web-based networ

Re: [Valgrind-users] Documentation for callgrind text data file format?

2015-05-29 Thread Josef Weidendorfer
Am 29.05.2015 um 18:50 schrieb Rocky Bernstein: > I'm looking into adding into the GNU make fork remake > (http://bashdb.sf.net/remake) profiling using a callgrind file format. Not sure I get the idea. Do you want to generate a callgrind file for dependencies in Makefiles? > Is there something th

Re: [Valgrind-users] Query on Numa architecture friendly memory allocation profiling

2015-04-21 Thread Josef Weidendorfer
Am 21.04.2015 um 11:35 schrieb rajsing mohapatro: > This mail is to check if currently Valgrind provides any tool/option > which can be utilized to do profiling of a running process to know what > % of memory allocation made by the process is NUMA optimized. Not that I know of. However, physical

Re: [Valgrind-users] A great trick for counting cycles using callgrind - but what about massif?

2015-02-23 Thread Josef Weidendorfer
Whether such a thing can be supported by a tool of course depends on the tool. For memcheck, this obviously makes no sense. But yes, it could become a VG core feature and tools enable it if they can cope with. E.g. for lackey, it also would work. To not forget about it, can you add it as "wishlist

Re: [Valgrind-users] Error in callgrind ( ???:function )

2015-02-18 Thread Josef Weidendorfer
Am 18.02.2015 um 12:23 schrieb Azat Khuzhin: > On Wed, Feb 18, 2015 at 11:56:51AM +0100, Josef Weidendorfer wrote: >> Am 18.02.2015 um 11:02 schrieb Azat Khuzhin: >>>> Does it work if you remove "-static"? I have no idea if Ubuntu provides >>>> debug inf

Re: [Valgrind-users] Error in callgrind ( ???:function )

2015-02-18 Thread Josef Weidendorfer
Am 18.02.2015 um 11:02 schrieb Azat Khuzhin: >> Does it work if you remove "-static"? I have no idea if Ubuntu provides >> debug info for libc.a ... > > Debian do provides, so I guess that ubuntu too: > libc6-dev: /usr/lib/x86_64-linux-gnu/libc.a That file on Ubuntu 14.10 (I am running this here)

Re: [Valgrind-users] Error in callgrind ( ???:function )

2015-02-18 Thread Josef Weidendorfer
Am 17.02.2015 um 21:22 schrieb Raul Garcia: > I am a new user, I am doing a "hello world" test of Valgrind but i keep > hitting this error: > ... > 2,709 *???*:getenv [/home/otro/arm_emulator/hello_x86] The "???" are not really any errors, but a sign that for these functions, valgrind could not lo

Re: [Valgrind-users] Dump of opcode/mnemonic per code line

2015-02-17 Thread Josef Weidendorfer
d? > > Cheers, > Raul. > > ____ > From: Josef Weidendorfer [josef.weidendor...@gmx.de] > Sent: Tuesday, February 17, 2015 9:40 AM > To: Raul Garcia; valgrind-users@lists.sourceforge.net > Subject: Re: [Valgrind-users] Dump of opcode/mnemonic per code line > > Am 16.02.2

Re: [Valgrind-users] Dump of opcode/mnemonic per code line

2015-02-17 Thread Josef Weidendorfer
Am 16.02.2015 um 22:29 schrieb Raul Garcia: > |That information is great, but is it possible to get the exact instructions > (mnemonics) that where utilized/executed > per each line like in the example below? This information would be really > valuable to me. In the instrument function you have

Re: [Valgrind-users] Enabling instrumentation with callgrind_control not working

2015-02-02 Thread Josef Weidendorfer
Am 02.02.2015 um 12:49 schrieb Christian Priebe: > The same line repeats until I shutdown vgdb. Ok, running "vgdb --pid=XXX > v.wait 500" without any tool (i.e. "valgrind bin/mysqld") Without a tool specified, the default is memcheck. > So, apparently this has nothing to do with callgrind but wit

Re: [Valgrind-users] Enabling instrumentation with callgrind_control not working

2015-02-02 Thread Josef Weidendorfer
Am 02.02.2015 um 00:00 schrieb Christian Priebe: > I'm back to the previous issue that callgrind_control or more > specifically vgdb hangs. This is the output I get when running vgdb -d > ... Hmm. Then it looks like a hang in the vgdb handler in callgrind, but I have no idea why. Can you first ch

Re: [Valgrind-users] How to make use of callgrind --cacheuse=yes ?

2015-02-01 Thread Josef Weidendorfer
Hi Steve, > I'm looking for a way to answer the question 'how much of a cache line did I > use before discarding it?'. > > ... > > g++ matrix.cpp -O0 -g For performance analysis, you always should work with optimized code, ie. "-O2 -g" (actually, that doesn't change the data layout, so AcCost

Re: [Valgrind-users] Enabling instrumentation with callgrind_control not working

2015-01-31 Thread Josef Weidendorfer
Am 31.01.2015 um 14:49 schrieb Christian Priebe: > Apparently callgrind_control hangs on a read system call waiting for > some output from vgdb. Since Valgrind 3.9 or 3.10, callgrind_control is just a wrapper around vgdb. When mysql is running under callgrind, just call "vgdb -l" (sudo as needed).

Re: [Valgrind-users] KCachegrind

2014-12-12 Thread Josef Weidendorfer
Hi, You found a very old version of KCachegrind web pages. >From where did you get this URL? Via Google? I need to remove them. Anyway, if you use http://kcachegrind.sourceforge.net the pages are quite up-to-date. And as Milian said, of course you also can either use a distribution package or

Re: [Valgrind-users] cachegrind parameters for Quark/Galileo

2014-11-03 Thread Josef Weidendorfer
report. "Wish list item" :-) Josef > > Krzysztof > > > On Mon, Nov 3, 2014 at 8:38 PM, Josef Weidendorfer > mailto:josef.weidendor...@gmx.de>> wrote: > > Am 31.10.2014 um 16:46 schrieb Krzysztof Czarnowski: > > Cachegrind's cache mode

Re: [Valgrind-users] cachegrind parameters for Quark/Galileo

2014-11-03 Thread Josef Weidendorfer
Am 31.10.2014 um 16:46 schrieb Krzysztof Czarnowski: > Cachegrind's cache mode is not very general and I wonder if it makes > sense to use it on Quark to get at least approximate results on an > application's cache performance. The Quark's cache is integrated (both > instruction and data) single le

Re: [Valgrind-users] callgrind: jcnd=/

2014-10-08 Thread Josef Weidendorfer
Am 26.09.2014 um 04:35 schrieb John Carter: > I would assume then that > followed_count <= total_count > would always be true. > > This one liner > > find -name '*.callgrind' | xargs grep jcnd | ruby -nle 'p [$1, $2,$_] if > ($_ =~ /jcnd=([0-9]+)\/([0-9]+)/) && ($1.to_i > $2.to_i)' > > .

Re: [Valgrind-users] The syntax of jump and jcnd in callgrind profile files.

2014-08-24 Thread Josef Weidendorfer
Am 23.08.2014 um 14:56 schrieb Dan Liew: >> The instruction address you specify below is always the same as the line >> number. That makes not much sense. The instruction address is needed >> for KCachegrind to show annotated machine code, using "objdump ", >> but your example does not specify a bi

Re: [Valgrind-users] The syntax of jump and jcnd in callgrind profile files.

2014-08-22 Thread Josef Weidendorfer
Am 22.08.2014 um 19:48 schrieb Dan Liew: > The documentation [1] doesn't define these very clearly. The grammar > for ``JumpSpecification`` doesn't seem to be specified properly. Oops, indeed. Thanks for the notification. > * jump=count target position [Callgrind] > > Unconditional jump, execut

Re: [Valgrind-users] Callgrind

2014-07-22 Thread Josef Weidendorfer
er/architecture is this? Josef > > Olaf > > > 2014-07-22 10:25 GMT+02:00 Josef Weidendorfer <mailto:josef.weidendor...@gmx.de>>: > > Hi Olaf, > > Am 21.07.2014 14 :48, schrieb Olaf Lenz: > > Hi everybody! > > >

Re: [Valgrind-users] Callgrind

2014-07-22 Thread Josef Weidendorfer
Hi Olaf, Am 21.07.2014 14:48, schrieb Olaf Lenz: > Hi everybody! > > I am trying to use callgrind (3.8.0) to profile our simulation software > ESPResSo (http://espressomd.org) on Linux. > > Unfortunately, callgrind seems to loose the information on where to find > the source files when running t

Re: [Valgrind-users] my cache factoring saga continues

2014-07-07 Thread Josef Weidendorfer
Am 07.07.2014 01:28, schrieb Jerry Scharf: > Hi again, > > This is just such an awful thing to be doing but such are the cards I get > handed. > > The program I am trying to measure the cache performance on is actually a > win32 progran that I am running under wine on redhat linux. I thought fo

Re: [Valgrind-users] cachegrind for Xeon e5-2643v2

2014-07-04 Thread Josef Weidendorfer
Am 04.07.2014 10:00, schrieb Josef Weidendorfer: > However, if you have multithreaded code: cachegrind currently does not > simulate shared L3 for multithreaded > code, but expects the full hierarchy to be private for each thread. Sorry, that's wrong. Cachegrind only maintains one

Re: [Valgrind-users] cachegrind for Xeon e5-2643v2

2014-07-04 Thread Josef Weidendorfer
Am 03.07.2014 19:22, schrieb Jerry Scharf: > Tom and Josef, > > Thank you for your speedy responses. > > Is cachegrind an instrumentation of the real system or a simulation of the > processor cache based on the code executed? From your responses, it sounds > like the later. Yes. For the first

Re: [Valgrind-users] cachegrind for Xeon e5-2643v2

2014-07-03 Thread Josef Weidendorfer
Am 03.07.2014 09:32, schrieb Tom Hughes: > On 03/07/14 07:06, Jerry Scharf wrote: > >> Why is it insisting that the numbers be powers of 2? If I use --LL with the >> real numbers it refuses to start. If I round these down to the next lower >> power of 2 (16M and 16 associations) it doesn't compl

Re: [Valgrind-users] [callgrind] CGAL profiling error, over 100% of instruction count

2014-05-15 Thread Josef Weidendorfer
Hi Jin, thanks, I can reproduce it. This is a bug in KCachegrind, and not in callgrind itself. For some reason, the caller/callee view does not correctly recognize this as recursive function call. It simply should leave the cost column empty. Simple workaround: just ignore. Josef Am 11.05.20

Re: [Valgrind-users] building valgrind + perftools-lite linking error

2014-04-15 Thread Josef Weidendorfer
Am 13.04.2014 13:37, schrieb Philippe Waroquiers: > On Sun, 2014-04-06 at 19:29 -0700, janjust wrote: >> Hi, >>I'm trying to profile valgrind using perftools-lite and when compiling >> the tools I get an undefined reference error. >> VEX and coregrind build, but during linking it errs (error is

Re: [Valgrind-users] Callgrind: where do I find the list of event names?

2014-02-12 Thread Josef Weidendorfer
Am 12.02.2014 19:03, schrieb Philippe Waroquiers: > On Wed, 2014-02-12 at 17:00 +, Dallman, John wrote: >> That doesn't look as if there are any other events present, unless >> they're >> called something different. I realise I've jumped to the conclusion >> that >> calls are events, and this m

Re: [Valgrind-users] Callgrind: where do I find the list of event names?

2014-02-12 Thread Josef Weidendorfer
Am 12.02.2014 14:52, schrieb Dallman, John: > I'm looking at using callgrind to replace an expensive Windows coverage tool, > and for some other work where the ideas are only part-formed. > > The default callgrind run and callgrind_annonate display shows Ir events, but > I only need to count funct

Re: [Valgrind-users] Beginner hg question: mapping address to the variable

2014-01-20 Thread Josef Weidendorfer
Am 19.01.2014 15:34, schrieb Philippe Waroquiers: > On Sat, 2014-01-18 at 10:11 +0100, David Faure wrote: >> On Friday 17 January 2014 12:36:32 Raghu Reddy wrote: >>> My question is, how do I find the variable located at the address 0x420A080? >>> The code was ready compiled with -g option, so I wa

Re: [Valgrind-users] Dynamic analysis with given input

2013-10-29 Thread Josef Weidendorfer
Am 29.10.2013 03:27, schrieb Loi Luu: > supports many useful tools. I'm thinking to use *Callgrind *to solve my > problem, but I'm not sure whether its a right choice. Callgrind does observe branch behavior, and counts how often instructions from various branches are executed. The source annotati

Re: [Valgrind-users] Dirty helper called more times than expected

2013-10-05 Thread Josef Weidendorfer
Am 04.10.2013 21:47, schrieb Sonny Tavernier: > Hi, > > I have an unexpected behavior with a basic tool. > For each Put statement of a basic block, I register a dirty helper using > unsafeIRDirty_0_N. > The problem is that the dirty helper is called more times than expected, > e.g. there are 5

Re: [Valgrind-users] Performance profiling in VM using Valgrind

2013-04-24 Thread Josef Weidendorfer
Am 24.04.2013 05:44, schrieb Liu James: > Dear all, > > I used Valgrind(callgrind) to profile database cache performance, and > the host machine is a VM guest with XEON CPU. > > Without instrumentation, the performance of dbms with cache-on is 20% > higher What do you mean by higher? Better or w

Re: [Valgrind-users] oprofile and kcachegrind

2013-04-23 Thread Josef Weidendorfer
Am 23.04.2013 09:35, schrieb Mark Wielaard: > On Tue, Apr 23, 2013 at 01:22:31PM +0800, Ice Frog wrote: >> I use oprofile for performance profiling. I noticed that kcachegrind(more >> specifically, op2callgrind or kcachegrind-converters) is able to analyze >> information generated by oprofile. >> >

Re: [Valgrind-users] using callgrind for nested programs

2013-04-19 Thread Josef Weidendorfer
Am 19.04.2013 06:52, schrieb Mahmood Naderan: > It seems that callgrind can not instrument a program that runs on top of > another program. This is not specific to callgrind. By default, child processes of a process controlled by Valgrind will not be run within Valgrind themself. If you want that

Re: [Valgrind-users] there is no callgrind.out

2013-04-18 Thread Josef Weidendorfer
Am 18.04.2013 19:15, schrieb Mahmood Naderan: > the -valgrind option will set > valgrind --tool=callgrind --tool=memcheck -v --trace-children=yes > in the command line. The 2nd --tool option overrides the first, as you can not run multiple tools at once. Josef

Re: [Valgrind-users] Callgrind tool of Valgrind is too slow

2013-03-26 Thread Josef Weidendorfer
Hi, Am 26.03.2013 13:54, schrieb Farah Saab Gmail: > I am using callgrind tool of valgrind to profile my running code. > Then I am using kcachegrind to view the output. The problem is that my > native code is already slow as it is. So running it through valgrind is > making it even more slow. Acco

Re: [Valgrind-users] Loop Count

2013-03-13 Thread Josef Weidendorfer
Am 13.03.2013 16:58, schrieb Farah Saab Gmail: > Hello, > > How do I get the number of loops in a function shown in Kcachegrind? > Is it enough to press the button "Cycle Detection"? No, that is something totally different (it's about correct calculation of inclusive costs, and that needs detectio

Re: [Valgrind-users] Instruction types in valgrind

2013-03-11 Thread Josef Weidendorfer
Am 11.03.2013 11:27, schrieb Farah Saab Gmail: > I am new to valgrind. I need your advice on something. I ran my c++ > project using valgrind (cachegrind tool). I got an output file of the > following format cachegrind.out.x > Then I used the kcachegrind tool to read this file. > I got the list of

Re: [Valgrind-users] Cannot access the website of kcachegrind

2013-02-18 Thread Josef Weidendorfer
Am 16.02.2013 14:11, schrieb Milian Wolff: > On Saturday 16 February 2013 09:24:51 Ice Frog wrote: >> Hi all, >> >> The website of kcachegrind http://kcachegrind.sourceforge.net/ is >> inaccessible. How can I get the source code of kcachegrind (from >> somewhere else)? thanks. > > Use svn://ano

Re: [Valgrind-users] Valgrind can attach to a running process?

2013-02-06 Thread Josef Weidendorfer
Am 06.02.2013 10:21, schrieb Ice Frog: > Hi folks, > > I have a simple question. I'm using Valgrind for database profiling. The > db server is a daemon program, and it seems I can only do profiling by > attaching Valgrind to the daemon. Valgrind does not allow attaching to a running process. With

Re: [Valgrind-users] Valgrind 3.8.0 can not open cache simulation output file(callgrind)

2013-01-22 Thread Josef Weidendorfer
Am 22.01.2013 12:46, schrieb Steph: >> root@bt:~# ==1975== >> ==1975== Error: can not open cache simulation output file >> `/root/callgrind.out.1975' > > I also tried to do same thing under regular user from home directory and > got the same result You mean you get: ==1975== Error: can not open c

Re: [Valgrind-users] Valgrind 3.8.0 can not open cache simulation output file(callgrind)

2013-01-15 Thread Josef Weidendorfer
Am 15.01.2013 07:36, schrieb Steph: > Hello everyone! > Got strange problem while tracing nginx using callgrind. > > I'm running trace with next command: > > valgrind --trace-children=yes --tool=callgrind /usr/local/nginx/sbin/nginx > > And as result got > > > root@bt:~# ==1975== > ==1975== Error:

Re: [Valgrind-users] Perf cache misses vs. Cachegrind simulated cache misses through PARSEC benchmark suite

2012-12-13 Thread Josef Weidendorfer
any I1 misses, you at least know that the "active code part" fits into 32kB, and there is nothing to improve in that regard. Best, Josef > > Thanks, > > Jason > > On Fri, Dec 7, 2012 at 3:06 PM, Josef Weidendorfer > wrote: >> Am 07.12.2012 20:46, schrieb Jason Pal

Re: [Valgrind-users] Perf cache misses vs. Cachegrind simulated cache misses through PARSEC benchmark suite

2012-12-07 Thread Josef Weidendorfer
Am 07.12.2012 20:46, schrieb Jason Palaszewski: > Hi, I'm trying to compare the number of cache misses (D1, I1, and LL) > between what Perf gives me (on the hardware itself) vs. what > Cachegrind thinks the number of misses should be. The server machine > has two Sandy Bridge Intel Xeon E5-2430 CPU

Re: [Valgrind-users] Why does Ir count in Callgrind and Cachegrind differ?

2012-12-03 Thread Josef Weidendorfer
Hi, Am 03.12.2012 00:28, schrieb Siddharth Nilakantan: > Curious question. How much is the slowdown of Callgrind over > Cachegrind? Callgrind unfortunately is quite a bit slower than cachegrind. Reasons for this: (1) for dynamic call-graph collection, every basic block (BB) first calls into a C

Re: [Valgrind-users] Why does Ir count in Callgrind and Cachegrind differ?

2012-11-27 Thread Josef Weidendorfer
Am 27.11.2012 08:48, schrieb Geoff Alexander: > Josef Weidendorfer wrote on 11/19/2012 > > I just fixed that bug in SVN trunk. > > I tested with both Valgrind 3.8.1 and Valgrind SVN-13143 as well as > retesting with the Valgrind 3.6.1 that comes with openSUSE 12.1. The > S

Re: [Valgrind-users] Why does Ir count in Callgrind and Cachegrind differ?

2012-11-19 Thread Josef Weidendorfer
Am 19.11.2012 11:38, schrieb Josef Weidendorfer: > Hmm. I think I just found a bug here :( I just fixed that bug in SVN trunk. So if that was the issue you observed, can you check current SVN? Josef -- Monitor y

Re: [Valgrind-users] Why does Ir count in Callgrind and Cachegrind differ?

2012-11-19 Thread Josef Weidendorfer
Am 18.11.2012 06:40, schrieb Geoff Alexander: > I've recently been looking at Callgrind and Cachegrind output. I've > found that both tools generate an Ir count. From what I've found in the > Valgrind documentation and on the Web, the Ir count is the number of > instructions executed (instruction

Re: [Valgrind-users] Generating VEX code in instrument function (inlining)

2012-11-06 Thread Josef Weidendorfer
Am 05.11.2012 01:49, schrieb Wonjoon Song: > Hello all, > > In the lackey example, there is instrument function like > > static VG_REGPARM(2) void trace_load(Addr addr, SizeT size). > > Instead of calling this precompiled function, will I get performance gain if > I directly generate VEX code? Yo

Re: [Valgrind-users] Is VG_REGPARM inlining?

2012-10-02 Thread Josef Weidendorfer
Am 01.10.2012 23:47, schrieb Wonjoon Song: > In the example lackey, there is > > static VG_REGPARM(2) void trace_load(Addr addr, SizeT size); > > I saw a pdf http://valgrind.org/docs/iiswc2006.pdf that VG_REGPARM > passes arguments using registers instead of stack. Is this inlining? No. VG_REGPA

Re: [Valgrind-users] Re al (client) addresses from Lackey's mem-trace option?

2012-07-23 Thread Josef Weidendorfer
Am 23.07.2012 19:08, schrieb Mikael Jansson: > + VG_(printf)("S %p\n", ist->Store.addr) > ... > Have I misunderstood how ist->Store.addr is supposed to be used, Yes. IRStmt.Store.addr is of type IRExpr*. You are printing out the address of a structure used for the VEX IR while instrumentation of a

Re: [Valgrind-users] Callgrind: Intrumentation and data collection

2012-06-27 Thread Josef Weidendorfer
Am 27.06.2012 17:25, schrieb Christoph Bartoschek: > Hi, > > the manual does not explain all interactions between data collection and > instrumentation. > > I start with --instr-atstart=no > > When I then enable instrumentation with > > CALLGRIND_START_INSTRUMENTATION > > is collection activated?

Re: [Valgrind-users] Bug with Callgrind and Trace-children

2012-06-14 Thread Josef Weidendorfer
Hi, Am 14.06.2012 01:41, schrieb kapil anand: > I am using valgrind with callgrind tool under wine but facing a few > problems. I am using following command to run valgrind > > valgrind --tool=callgrind --trace-children=yes --dump-instr=yes > --trace-jump=yes --separate-threads=yes wine > > S

Re: [Valgrind-users] Segmentation fault while running without Valgrind

2012-03-19 Thread Josef Weidendorfer
Am 17.03.2012 03:22, schrieb Ferosh Jacob: > Hi all > > I have an OpenMP program written in C and OpenMP, the program runs fine > for some sizes of data, > For bigger sizes it is throwing a segmentation fault, I tried setting > the ulimit -s 1, unlimited, G/K/O, MP_STACKSIZE, variables but all

Re: [Valgrind-users] callgrind: toggle-collect functions in assembly mode

2012-01-09 Thread Josef Weidendorfer
On 07.01.2012 22:59, John Reiser wrote: >> However, after using callgrind_annotate --auto=yes, there is no information >> for a particular function, say, "foo". The name of "foo" in the assembly is >> "_Z10foo". I checked and evidence show that this function, which is the core >> computational

Re: [Valgrind-users] filtering libraries from callgrind

2011-10-17 Thread Josef Weidendorfer
On 15.10.2011 01:52, Igor Galić wrote: > > With a lot of patience and help form #perl on FreeNode, I have > managed to put together a script which does indeed reduce the > calls as I wanted to. > > While the output is still 2.4 MiB, this is a great improvement > over the 3.6 MiB from before. While

Re: [Valgrind-users] filtering libraries from callgrind

2011-10-14 Thread Josef Weidendorfer
On 14.10.2011 17:42, Igor Galić wrote: > To summarize: I'm trying to get a call-graph for Apache Traffic Server > for documentation purposes. In this sense I don't care about how long > a function call takes. If it's part of our source base, it's relevant > to me. Thus, I would like to filter out a

Re: [Valgrind-users] cachegrind not detecting false-sharing

2011-09-19 Thread Josef Weidendorfer
On Monday 19 September 2011, zap foster wrote: > How can the results be virtually identical? I would have thought the "false > sharing" version would be significantly higher than the other, but they are > nearly identical. > > Is there something I am doing wrong with the tool? No. You did not

Re: [Valgrind-users] Tracking function call

2011-09-09 Thread Josef Weidendorfer
On Saturday 10 September 2011, Emilio Coppa wrote: > > a() > > PLT() > > > b() > > But if you print: > > a () > > > b() > > So you can think (erroneously) that b() is called from a(). You are completely right. The calls into PLT are printed if "--skip-plt=no" is specified. Then, the results shou

Re: [Valgrind-users] Tracking function call

2011-09-01 Thread Josef Weidendorfer
On Thursday 25 August 2011, Emilio Coppa wrote: > > Hmm... strlen shouldn't need to call calloc, so your output seems to be > > sane. ... > > Can you locate the relevant output of "valgrind --tool=callgrind > > --ct-verbose=2 ..."? Thanks! There are a lot of strlen called here, but all end with r

Re: [Valgrind-users] excluding cost of valgrind hooks fromcallgrind/cachegrind

2011-09-01 Thread Josef Weidendorfer
Just some followup... On Tuesday 30 August 2011, Christoph Schwarz wrote: > On 30/08/2011 3:50 AM, WAROQUIERS Philippe wrote: > >> However, the cost seems to include overhead from valgrind itself, such > >> as malloc& other hooks. ... > > Are you sure these hooks are from valgrind ? ... > Probabl

Re: [Valgrind-users] Tracking function call

2011-08-25 Thread Josef Weidendorfer
On Wednesday 24 August 2011, Emilio Coppa wrote: > >. > strlen(0x40183b6, 0xbe918faa, ...) [ld-2.13.so / 0x16c20] > >. > calloc(0x2e9, 0x1, ...) [ld-2.13.so / 0x14dd0] > >. > 0x000174ab(0xbe918194, 0x401cff4, ...) [ld-2.13.so / 0x174ab] > >. .> malloc(0x2e9, 0x401cff4, ...) [ld

Re: [Valgrind-users] Tracking function call

2011-08-24 Thread Josef Weidendorfer
On Wednesday 24 August 2011, Emilio Coppa wrote: > Hi > > I am trying to write a new tool. For my purpose i need to track function > entry/exit, I read tracking-fn-entry-exit.txt and see some code of callgrind > (it's not easy to isolate the code that i need), but I am not so good and so > I have

Re: [Valgrind-users] (Callgrind/kcachegrind) How to interpret absolute cost?

2011-08-22 Thread Josef Weidendorfer
On Friday 19 August 2011, Asra Baig wrote: > What is the unit of measurement of absolute cost values? Is it microsecs? The unit depends on the event type selected to be shown by KCachegrind. E.g. Callgrind has a cache simulator, so event types are for example "instructions executed" or "cache miss

Re: [Valgrind-users] Using num-callers

2011-07-18 Thread Josef Weidendorfer
On Monday 18 July 2011, David Granchinho wrote: > Hi! I'm using a modified version of lackey so that I print the access > made by superblocks in a specific way. I'm tracking the function calls > to a specific group of functions but I can't do it if the level of > function calls gets too deep. I've

Re: [Valgrind-users] Cost meaning (valgrind/callgrind)

2011-07-15 Thread Josef Weidendorfer
e associated with each superblock. As superblocks can have multiple exits, there is not really a good way to predefine a cost per block. Josef > Is there any way to get > the cost of each block? (maybe in terms of instructions executed?) > > 2011/7/14 Josef Weidendorfer : > > On

Re: [Valgrind-users] Cost meaning (valgrind/callgrind)

2011-07-14 Thread Josef Weidendorfer
On Wednesday 13 July 2011, David Granchinho wrote: > Hi! I couldn't find anywhere in the documentation what is the meaning > of the cost of a basic block: bb->cost_count. It measures the cost of > the execution of this block in terms of what? This is the number of 64bit counters that have to be al

Re: [Valgrind-users] Checking memory addresses (Callgrind)

2011-07-12 Thread Josef Weidendorfer
On Tuesday 12 July 2011, David Granchinho wrote: > Hi! I'm currently trying to develop a simple profiling tool on top of > callgrind. I've created a structure that contains information about > every executed block and its memory accesses. To do that, every time > the function callgrind/bbcc.c/CLG_(

Re: [Valgrind-users] Usability of callgrind_annotate

2011-07-11 Thread Josef Weidendorfer
On Monday 11 July 2011, John Reiser wrote: > >> It is better to think of this as a _continuation_, for which > >> some programmers might use the idea of "return+call" as a crutch > >> until they become familiar with continuations. In many cases > >> it is important to realize that a principle side

Re: [Valgrind-users] Usability of callgrind_annotate

2011-07-11 Thread Josef Weidendorfer
On Monday 11 July 2011, John Reiser wrote: > ... > >> Adopting the "subroutine outlook" also favors a loop over recursion. > >> The "subroutine outlook" knows only what is [scheduled] to be done > >> in the future; what has happened in the past is not relevant and > >> cannot be known. Thus the cu

Re: [Valgrind-users] binary debugging and generate source of which that running

2011-07-08 Thread Josef Weidendorfer
On Thursday 07 July 2011, Josef Weidendorfer wrote: > valgrind --tool=callgrind --ct-verbose=1 ... By the way: please only look at the sequence of function calls printed out. The rest probably is completely misleading (esp. the stuff that looks like parameters of the called functions). The opt

[Valgrind-users] Usability of callgrind_annotate (Re: binary debugging and generate source of which that running)

2011-07-08 Thread Josef Weidendorfer
On Friday 08 July 2011, John Reiser wrote: > What I see is an instance of EPIC FAIL for Usability. Thanks for the detailed reply. I really appreciate it. The first thing I must note here is that "callgrind_annotate" is meant as fallback solution for people who can/do not want to use a GUI. KCach

Re: [Valgrind-users] instrument the 'call' instructions

2011-07-08 Thread Josef Weidendorfer
On Friday 08 July 2011, pankaj pawan wrote: > I know the arguments and their types. > I can get the stackpointer during > runtime but how do I read the stack after that. > Can I read memory just by dereferencing the stack pointer? VEX of course can read from memory, see IRExpr_Load. Or if you ins

Re: [Valgrind-users] instrument the 'call' instructions

2011-07-08 Thread Josef Weidendorfer
On Thursday 07 July 2011, pankaj pawan wrote: > Hi Josef, > > Thanks for your reply. I did run valgrind with > guest_chase_thresh = 0 and was able to do capture the calls. > > But my doubt was that I can't see the jump statement(is it that > unconditional jumps are not displayed in IR) > Sorry

Re: [Valgrind-users] binary debugging and generate source of which that running

2011-07-08 Thread Josef Weidendorfer
On Thursday 07 July 2011, John Reiser wrote: > > valgrind --tool=callgrind --ct-verbose=1 ... > > When I run callgrind and callgrind_annotate, then I don't understand > the output. For instance, the connection between "73" and the number > of actual dynamic calls to exit() is mysterious to me: >

Re: [Valgrind-users] instrument the 'call' instructions

2011-07-07 Thread Josef Weidendorfer
On Thursday 07 July 2011, pankaj pawan wrote: > Hi all, > > I had doubt regarding the flattened IR for a call instruction. When I try > and print the IR statements for call instructions, i can see the return > instruction being written on the stack but i am unable to see how the > branching is bei

Re: [Valgrind-users] binary debugging and generate source of which that running

2011-07-07 Thread Josef Weidendorfer
On Thursday 07 July 2011, John Reiser wrote: > > I have a binary file what i compile it with -g.So i need to perform a > > set of action in my computer and see behavior of my file, This mean , i > > need to see functions of run when i perform those set of actions, > > This sounds like some kind of

Re: [Valgrind-users] Valgrind callgrind cgview

2011-06-05 Thread Josef Weidendorfer
On Saturday 04 June 2011, Frank Chang wrote: > Josef Weidenorfer, Thank you for your reply, When we to ftp mirror > ftp://ftp.gtlib.cc.gatech.edu/pub/kde/snapshots, we cannot find > kdemodule-svn.tar.bz2. We thought this is the module that contains the > latest version of cgview. ftp://ftp.gtlib.c

Re: [Valgrind-users] Valgrind callgrind cgview

2011-06-03 Thread Josef Weidendorfer
On Friday 03 June 2011, Frank Chang wrote: > Good morning , We can't find the cgview source code, See http://websvn.kde.org/trunk/KDE/kdesdk/kcachegrind See "Obtaining The Source Code" at http://techbase.kde.org/Getting_Started/Sources You need cmake to compile. Warning: cgview is not release

Re: [Valgrind-users] Is it possible for callgrind to selectivel​y profile certain periods of a program's execution?

2011-06-03 Thread Josef Weidendorfer
On Friday 03 June 2011, Frank Chang wrote: > At the beginning of a program period you want to profile, set the counters > to zero (add "CALLGRIND_ZERO_STATS;" > into your source), and at the end, dump the profile to a file (add > "CALLGRIND_DUMP_STATS;" into your source code). > > > However, we f

Re: [Valgrind-users] Possible Error: C​allgrind Version 3.6.1 cg_annotat​​e : Line 1 Missing command line

2011-06-01 Thread Josef Weidendorfer
On Wednesday 01 June 2011, Julian Seward wrote: > > I want to keep short prefixes. 2 or 3 letters is fine; DRD uses > > 'drd' in a lot of places. I want to keep "cg" for Cachegrind, so > > "clg" for Callgrind is fine; "cl" would be fine too, probably better > > in fact. I don't want to change a

Re: [Valgrind-users] Possible Error: C​allgrind Version 3.6.1 cg_annotat​​e : Line 1 Missing command line

2011-05-30 Thread Josef Weidendorfer
Hi, this really sounds like a discussion on the color of the bike shed. Anyway... On Saturday 28 May 2011, WAROQUIERS Philippe wrote: > >> Is there a need for vgdb to stick with 2 letters? I much would prefer "clg" > >> instead. Since years I use the alias clg='valgrind --tool=callgrind', and >

  1   2   >