Re: [Valgrind-users] tool=cachegrind always reports LL misses, even if the cache is bigger than the used memory

2023-04-25 Thread Eliot Moss
the *first* access to a line causes a miss. These are sometimes called mandatory misses. A large cache *will* eliminate *capacity* misses. HTH -- Eliot Moss ___ Valgrind-users mailing list Valgrind-users@lists.sourceforge.net https://lists.sourcef

Re: [Valgrind-users] unhandled instruction bytes

2023-04-18 Thread Eliot Moss
a system call that valgrind does not recognize? One would need to know register contents to go further with that. Btw, naming a program "test" is not necessarily a wonderful idea if the current directory happens to be on your path, since "test" is a program often used by s

Re: [Valgrind-users] Recursive `who-points-at`

2023-02-25 Thread Eliot Moss
e had if the executable had the information kept with it and not stripped. Best - Eliot Moss ___ Valgrind-users mailing list Valgrind-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/valgrind-users

Re: [Valgrind-users] Regarding use of Lackey to trace midway execution of a program

2023-02-07 Thread Eliot Moss
On 2/8/2023 4:10 PM, SAI GOVARDHAN M C PES1UG19EC255PESU ECE Student wrote: Hi, We are students working on memory access analysis, using the Lackey tool in Valgrind. Our memory trace results in a large log file, and we need the trace from discrete points of execution (between 40-60%). Instead

Re: [Valgrind-users] Cache conflict detection support in cachegrind

2023-01-29 Thread Eliot Moss
On 1/30/2023 7:08 AM, Ivica B wrote: Can you please share the instructions on how to do it? On Sun, Jan 29, 2023, 9:07 PM Eliot Moss mailto:m...@cs.umass.edu>> wrote: I have used lackey to get traces, which I have fed into a cache model to detect conflicts and such.  You could

Re: [Valgrind-users] Cache conflict detection support in cachegrind

2023-01-29 Thread Eliot Moss
I have used lackey to get traces, which I have fed into a cache model to detect conflicts and such. You could also start with the lackey code and model the cache model into the tool (which a student of mine did at one point). Regards - Eliot Moss

Re: [Valgrind-users] Valgrind trace Memory Addresses while running?

2022-08-05 Thread Eliot Moss
grind? The lackey tool does just that - output a trace of memory references. -- Eliot Moss ___ Valgrind-users mailing list Valgrind-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/valgrind-users

Re: [Valgrind-users] I need your help because Building VALGRIND is Failing on Ubuntu 20.xx

2021-01-14 Thread Eliot Moss
On 1/14/2021 9:35 AM, Geoff Alexander wrote: I wonder if this is related to Valgrind bug 439542 Cannot compile valgrind on Ubuntu 20.04 docker due to failed compilation libmpiwrap.c (https://bugs.kde.org/show_bug.cgi?id=420518). Geoff Alexander, Ph.D. Software Engineer, Corporate Tools Developm

Re: [Valgrind-users] I need your help because Building VALGRIND is Failing on Ubuntu 20.xx

2021-01-14 Thread Eliot Moss
onfiguring --without-mpicc or else revert the MPI version to 2.something instead of 3.something. (The latter is a little bit of a guess, but because configure --help mentions MPI2.) HTH - Eliot Moss ___ Valgrind-users mailing list Valgrind-users@lists.s

Re: [Valgrind-users] Running Valgrind on ndmp

2019-09-12 Thread Eliot Moss
;how to do something on linux" thing ... Maybe somebody can think of even nicer ways to do this. Regards - Eliot Moss ___ Valgrind-users mailing list Valgrind-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/valgrind-users

Re: [Valgrind-users] How can valgrind prevent Segmentation fault?

2019-01-26 Thread Eliot Moss
improper freeing or lack of initialization of pointers ... Regards - Eliot Moss ___ Valgrind-users mailing list Valgrind-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/valgrind-users

Re: [Valgrind-users] unhandled instruction.

2015-07-30 Thread Eliot Moss
A0BEF > - > $ gcc -c foo.s > $ gdb foo.o > (gdb) x/i 0 > 0: vcvt.f64.s32 d0, d0, #1 > (gdb) If we are really talking about the ARM processor, this

Re: [Valgrind-users] unhandled instruction.

2015-07-29 Thread Eliot Moss
r of instructions and variants on them. Valgrind covers *most* of them, but this means that this particular instruction it does not recognize. It's a moving target -- new models and new instruct

Re: [Valgrind-users] Valgrind to map all memory access?

2014-10-30 Thread Eliot Moss
You can get a trace of memory accesses from lackey. You would need to process it down a bit if all you want is counts and if you want to sort it by location, but it would be reasonably easy to do that. Eliot Moss On October 30, 2014 1:36:14 PM EDT, David Goldsmith wrote: >Hi, >is

Re: [Valgrind-users] Unique log filename

2014-09-26 Thread Eliot Moss
On 9/26/2014 12:38 PM, Julian Seward wrote: > On 09/25/2014 12:52 PM, Eliot Moss wrote: >> I started updating the valgrind documentation to add description >> of this new feature, and expect to submit a patch soon for >> developer approval. > > https://bugs.kde.org/show

Re: [Valgrind-users] Unique log filename

2014-09-25 Thread Eliot Moss
On 9/25/2014 5:45 AM, Skarakis, Konstantinos wrote: > That's fantastic. Thank you very much for your time. It works great. > > Here's how I am using it: > > I have this line in my ~/.valgrindrc: > > --log-file=/software/valgrind/rpts/%s{"/software/dstring"}-%p-report.txt > > And these are the conte

Re: [Valgrind-users] Unique log filename

2014-09-25 Thread Eliot Moss
On 9/25/2014 5:45 AM, Skarakis, Konstantinos wrote: > That's fantastic. Thank you very much for your time. It works great. Good news that it works for someone else too! I started updating the valgrind documentation to add description of this new feature, and expect to submit a patch soon for deve

Re: [Valgrind-users] Unique log filename

2014-09-24 Thread Eliot Moss
On 9/24/2014 7:39 AM, Eliot Moss wrote: On 9/24/2014 5:31 AM, Skarakis, Konstantinos wrote: Ok -- I decided to just give it a try in a copy of valgrind updated to svn head. The issue is that I was temporarily sticking a null character into the format string, yet the format string was declared

Re: [Valgrind-users] Unique log filename

2014-09-24 Thread Eliot Moss
odifying 'format' in place, the code needs to copy the relevant part out to a separate string. Also, some of the routines I called in the code (execva, sigaction, strlen) seem not to have their proper declarat

Re: [Valgrind-users] Unique log filename

2014-09-23 Thread Eliot Moss
f the invoking valgrind will be the script's PPID, etc. If the "powers that be" think this might be generally useful, then let me know how you would prefer to receive the patch, and any tidying you feel would be in order ... Regards -- Eliot Mos

Re: [Valgrind-users] Unique log filename

2014-09-23 Thread Eliot Moss
if this part of the code has not been changed a lot, then the patch should not be too bad to extract. I've been meaning to submit it for some time, actually, and this is a good prompt to make me do it! Regards -- Eliot Moss

Re: [Valgrind-users] [Callgrind] jcnd in char array initialization

2014-08-25 Thread Eliot Moss
It appears to me that the compiler is writing to all bytes of the string in a loop, as opposed to simply writing a 0x0 to the first byte. Regards -- Eliot Moss -- Slashdot TV. Video for Nerds. Stuff that matters. http

Re: [Valgrind-users] memory barriers support

2014-08-18 Thread Eliot Moss
bug. You might want to verify that valgrind and your code have the same notion of what the malloc/free routines are, etc., i.e., that valgrind is able to hook into all allocation and freei

Re: [Valgrind-users] Memcheck with Jikes RVM

2014-07-08 Thread Eliot Moss
On 7/8/2014 3:47 PM, Karl Cronburg wrote: > On 07/08/2014 02:48 PM, Philippe Waroquiers wrote: >> On Tue, 2014-07-08 at 14:39 -0400, Eliot Moss wrote: >>> On 7/8/2014 2:04 PM, Philippe Waroquiers wrote: >>>> On Tue, 2014-07-08 at 03:49 -0400, Karl Cronburg wrote

Re: [Valgrind-users] Memcheck with Jikes RVM

2014-07-08 Thread Eliot Moss
On 7/8/2014 2:04 PM, Philippe Waroquiers wrote: > On Tue, 2014-07-08 at 03:49 -0400, Karl Cronburg wrote: I can confirm that Jikes RVM does it own special allocation of stacks, which might be involved here. I am wondering why anyone would think a tool like memcheck would work with a Java virtual

Re: [Valgrind-users] understanding massif output when run against a simple executable

2014-05-14 Thread Eliot Moss
On 5/14/2014 2:21 PM, Rob Taylor wrote: > Thank you Milian Wolff and Eliot Moss, Typical users of tools like valgrind have more background in how all this works -- not a criticism of you, just a difference in expectation. The volume of code that results from compiling a program consisting o

Re: [Valgrind-users] understanding massif output when run against a simple executable

2014-05-13 Thread Eliot Moss
ams using the same library. There's a lot of mechanism there, even if you are not using much of it, and even if you are using parts of it without realizing it ... Regards -- Eliot Moss -- "Accelerate Dev Cycles with A

Re: [Valgrind-users] New to valgrind

2013-04-01 Thread Eliot Moss
g more like malloc/free underneath, but even then it might not be appropriate. Regards -- Eliot Moss -- Own the Future-Intel® Level Up Game Demo Contest 2013 Rise to greatness in Intel's independent game demo contest.

Re: [Valgrind-users] Valgrind Error Message on standard if statement

2013-02-11 Thread Eliot Moss
heck len > 0 *before* accessing in[len - 1]. The still-reachable blocks mystify me a little. The only one I see is the last IntIn, since players is freed and the rest won't be reachable from any accessible variable. Of course there a

Re: [Valgrind-users] Valgrind Error Message on standard if statement

2013-02-11 Thread Eliot Moss
If you expect no more than one \n in the string, then strchr may be what you want, or strrchr to find the last \n regardless. If they return non-null, you can examine the next byte to see if it is \0 and then clear th

[Valgrind-users] Fwd: [Valgrind-developers] vex: r2532: Fix PCMPxSTRx variant $0x46. Fixes #306664.

2012-09-17 Thread Eliot Moss
It's always nice to have additional cases covered. May I gently suggest that if an 8-bit case is added, the 16-bit case also be added at the same time? :-) Regards -- Eliot Moss Original Message Subject: [Valgrind-developers] vex: r2532: Fix PCMPxSTRx variant $0x46.

Re: [Valgrind-users] where is the official git tree for valgrind?

2012-06-26 Thread Eliot Moss
ttp://www.valgrind.org/downloads/repository.html Of course, if you prefer using git, you can do git svn clone ... Regards -- Eliot Moss -- Live Security Virtual Conference Exclusive live event will cover all the ways today's secur

Re: [Valgrind-users] how to disable unhandled instruction bytes error reporting

2012-06-04 Thread Eliot Moss
yond causing a signal, which presumably is unhandled here). A quick look suggests that this is a PADDB instruction. I think someone has been working on adding some of those instructions latelt; it *might* be covered if you grab and

Re: [Valgrind-users] Fw:Re:Re: Fw:Re:Re: program degradation

2012-06-01 Thread Eliot Moss
e a bit. You can kind of think of it as like a somewhat optimized interpreter for your machine -- but it is still at some level an interpreter. So, a 10x slowdown is *good*, not bad, given what is going on under the covers. Eliot Moss --

Re: [Valgrind-users] Question about Valgrind

2012-03-23 Thread Eliot Moss
currency. > Thanks for your answer in advance. No problem. Eliot Moss -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure

Re: [Valgrind-users] Question about Valgrind

2012-03-23 Thread Eliot Moss
've not looked for that information, but system call tracing in valgrind certainly prints it, so it should not be hard to get.) Regards -- Eliot Moss -- This SF email is sponsosred by: Try Windows Azure free for 90 da

Re: [Valgrind-users] Add missing syscall (setns())

2012-02-27 Thread Eliot Moss
I'm not super-familiar with this part of the code, but I wonder if the insertion you put in syswrap-generic.c needs to be in syswrap-linux.c, to match where you put things in syswrap-linux.h ... Eliot Moss -- Try b

Re: [Valgrind-users] [Callgrind] Illegal Instruction - how to find the cause?

2012-02-25 Thread Eliot Moss
nd why it fails unless if was added since you checked out from SVN. Best wishes -- Eliot Moss -- Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cl

Re: [Valgrind-users] Behavior diffenert with valgrind & without valgrind

2012-02-23 Thread Eliot Moss
algrind. See the man page :-) ... Best wishes -- Eliot Moss -- Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on all

Re: [Valgrind-users] A question about AMD 0x66 prefixes

2012-02-14 Thread Eliot Moss
On 2/14/2012 6:12 PM, Julian Seward wrote: >> So ... I am running tests with the decoder revised to allow 0x66 on the fpu >> instructions. >> Does anyone know of a reason why doing this would be bad/wrong? > Giving a blanket OK for 0x66 on FPU instructions makes me nervous, that we > might inadv

[Valgrind-users] A question about AMD 0x66 prefixes

2012-02-14 Thread Eliot Moss
In my continuing quest to get the HotSpot Java virtual machine to work under valgrind, I found that it wants to execute this opcode: 0x66 0xDD 0x4 This is (as far as I have been able to determine) a floating point load (fldl) with a 0x66 size prefix. Now the size prefix is useless with this instr

Re: [Valgrind-users] can't start any application on OS X 10.7.3

2012-02-09 Thread Eliot Moss
I was wrong :-( ... 0x66 0x0F 0x3A 0xDF appears to be AESKEYGENASSIST. Someone else will have to address that (if at all). Sorry ... Eliot -- Virtualization & Cloud Management Using Capacity Planning Cloud computing make

Re: [Valgrind-users] can't start any application on OS X 10.7.3

2012-02-09 Thread Eliot Moss
et back within a day. Perhaps someone else can verify it. If this variant is close enough to existing ones, I *might* be able to add it to what I am patching Regards -- Eliot Moss -- Virtualization & Cloud Managem

Re: [Valgrind-users] Apparent bug in svn head

2012-02-07 Thread Eliot Moss
On 2/7/2012 5:13 PM, Julian Seward wrote: I'm clear about the 2 repos business now :-) ... >> I'll post the other missing instruction as a bug report >> too. I am also on the trail of something that looks like >> an unimplemented (or differently implemented?) system call. >> The Java program und

Re: [Valgrind-users] Apparent bug in svn head

2012-02-07 Thread Eliot Moss
On 2/7/2012 5:19 AM, Julian Seward wrote: Thank you, Julian, for your patient instructions :-) ... > # merge any other changes that happened in the meantime > cd VEX > svn up > cd .. Why only VEX? I also added tests in none/test/amd64. Is there some reason to avoid svn up in the valgrind top-lev

Re: [Valgrind-users] Apparent bug in svn head

2012-02-04 Thread Eliot Moss
On 2/4/2012 7:02 AM, Julian Seward wrote: > >> I did that, but when I run the updated valgrind on >> the same program as before (Oracle's HotSpot JVM), >> it fails on a 0xF 0xAE 0x3F instruction, which >> appears to be either a CLFLUSH or an SFENCE (both >> decode the same way in the docs, so I am

[Valgrind-users] Apparent bug in svn head

2012-02-03 Thread Eliot Moss
e a significant project to support a range of guest processor capabilities controlled with flags, etc. Regards -- Eliot Moss -- Try before you buy = See our experts in action! The most comprehensive online learning librar

Re: [Valgrind-users] Unimplemented x64 instruction: 0x66 0xDD 0x4 (frstor)?

2012-01-31 Thread Eliot Moss
On 1/31/2012 4:15 AM, Julian Seward wrote: > > (You didn't reply-all on this; I assume that was intended) I did; thanks ... >> Your comments on the probable (non)utility of the instruction are >> suggestive as to why the copied-over x86 code is commented out. >> Unsurprisingly, simply uncommentin

Re: [Valgrind-users] Unimplemented x64 instruction: 0x66 0xDD 0x4 (frstor)?

2012-01-30 Thread Eliot Moss
On 1/30/2012 3:29 AM, Julian Seward wrote: > I would have thought that FSAVE/FRSTOR in 64 bit mode is essentially > useless, and the fact that we've not so far needed to implement them > kind of supports that suspicion. Reason is that they don't save or > restore the XMM registers. The x86-64 bi

[Valgrind-users] Unimplemented x64 instruction: 0x66 0xDD 0x4 (frstor)?

2012-01-29 Thread Eliot Moss
tSpot on DaCapo benchmarks fail under valgrind because this instruction is missing. Could someone perhaps clarify whether it simply hasn't been done or if there is some deeper reason why the code was commented out? Regards -- Eliot Moss PS -- I did search the archives on these but fai