Summary: | Need finer control of which child processes to trace | ||
---|---|---|---|
Product: | [Developer tools] valgrind | Reporter: | Dan Kegel <dank> |
Component: | general | Assignee: | Julian Seward <jseward> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | CC: | bart.vanassche+kde, leiz |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: |
patch to add option for skip tracing children
patch to try matching against all arguments and not just the exe name |
Description
Dan Kegel
2009-12-14 20:30:47 UTC
Created attachment 39929 [details]
patch to add option for skip tracing children
Here is a patch that adds --trace-skip=STR. This disables --trace-chidren for cases where the child's argv contains an argument that's equal to STR. The matching is just a simple strcmp(), no fancy regexp. You can pass multiple --trace-skip arguments to valgrind the same way you pass --suppression.
(In reply to comment #1) > Created an attachment (id=39929) [details] > patch to add option for skip tracing children > > Here is a patch that adds --trace-skip=STR. This disables --trace-chidren for > cases where the child's argv contains an argument that's equal to STR. Er, I think we already have this functionality in the trunk now: --trace-children-skip=patt1,patt2,... specifies a list of executables that --trace-children=yes should not trace into Is that what you were after? Or do I misunderstand? Yes, that's what I'm after. I guess Dan K should close this bug as a duplicate of bug 148932. Oh, looks like--trace-children-skip doesn't quite do what I want. In our test case, we're running the command: /path/to/wine-preloader /path/to/wine Z:\\path\\to\\python.exe. My patch examines all the arguments whereas --trace-children-skip only examines the first argument. That's not fine-grained enough because every command is /path/to/wine-preloader /path/to/wine foo.exe. Created attachment 39931 [details]
patch to try matching against all arguments and not just the exe name
(In reply to comment #4) > Oh, looks like--trace-children-skip doesn't quite do what I want. In our test > case, we're running the command: > > /path/to/wine-preloader /path/to/wine Z:\\path\\to\\python.exe. > > My patch examines all the arguments whereas --trace-children-skip only examines > the first argument. That's not fine-grained enough because every command is > /path/to/wine-preloader /path/to/wine foo.exe. I guess that --trace-children-skip-by-arg=... does provide the desired functionality ? Yes, probably, thanks. |