summaryrefslogtreecommitdiff
path: root/tools/valgrind-wireshark.sh
AgeCommit message (Collapse)AuthorFilesLines
2014-05-09Add -Q for QtShark and change the dumpcap command to use number ofAndersBroman1-2/+5
packets. Change-Id: Ia4dc03e3722379d41804758feeafb655f26376e9 Reviewed-on: https://code.wireshark.org/review/1573 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-05-08Add a command option for dumpcap.AndersBroman1-2/+5
Change-Id: Ic9a4b35f5a6245e0100f93c890622674e44413c6 Reviewed-on: https://code.wireshark.org/review/1564 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-02-14Remove $Id$ and other Subversion leftovers from the tools.Jeff Morriss1-2/+0
There are a few things in here which could still use attention. Don't regenerate anything now. Change-Id: I283c224d3523212144707fca3d6265916cb11792 Reviewed-on: https://code.wireshark.org/review/205 Reviewed-by: Jeff Morriss <jeff.morriss.ws@gmail.com>
2013-11-11Add -P option to allow specifying the 'callgrind-out-file' nameBill Meier1-2/+4
svn path=/trunk/; revision=53250
2013-09-12When profiling we are more interested in real-world performance than memoryEvan Huus1-8/+10
errors, so we want to use the "fast" allocators rather than the ones that are friendly to memcheck. svn path=/trunk/; revision=51969
2013-08-20Add a valgrind suppressions file set to suppress the zlib error which otherwiseEvan Huus1-1/+1
pops up immediately on the fuzzbot. Hopefully there won't be too many more of these. svn path=/trunk/; revision=51434
2013-08-16Try to use smarter path resolution and detection in order to work inEvan Huus1-1/+14
environments that are not the build tree (namely the fuzz-bot, but this might make normal out-of-tree builds easier too). svn path=/trunk/; revision=51387
2013-06-19Add a couple of missing lines from the usage output.Martin Mathieson1-1/+1
svn path=/trunk/; revision=50043
2013-06-05Add a -Y option to match test-captures.sh: it runs tshark with a read filter ↵Jeff Morriss1-1/+2
but without building the tree. svn path=/trunk/; revision=49797
2013-05-28Use the local libtool rather than whatever is in PATH. This works justEvan Huus1-1/+1
the same everywhere I've tested except my mac setup where it works better (since the libtool in PATH doesn't have --mode=execute for some strange reason). This is fairly experimental - feel free to revert if it breaks something. svn path=/trunk/; revision=49604
2013-05-23Add -p option to the valgrind script for profiling with callgrind.Evan Huus1-1/+2
svn path=/trunk/; revision=49543
2013-05-11Support running the massif valgrind tool for memory profiling.Evan Huus1-2/+4
svn path=/trunk/; revision=49251
2013-03-15Add -W option to valgrind script that just runs the gui without any captureEvan Huus1-1/+4
files. svn path=/trunk/; revision=48320
2013-03-10Update usage info for valgrind script. We almost need a proper man page forEvan Huus1-1/+1
this now. svn path=/trunk/; revision=48230
2013-03-09Remove the wmem slab. It was an optimization mimicking the emem slabEvan Huus1-1/+0
(removed in r48218) which did nothing particularly useful. Also lets us remove another debugging environment variable. svn path=/trunk/; revision=48219
2013-03-09Remove the emem slab feature (sl_* functions) completely, replacing it withEvan Huus1-1/+0
glib memory slices. - We weren't doing anything with the emem slab that couldn't be done with glib slices. - Removes a fair bit of code as well as one debugging environment variable. - Glib slices are much cache-friendlier and are multi-threading friendly (if we ever go there). - Allows glib to actually return slices to the OS on occasion. The emem slab would hold onto its memory forever which resulted in a great deal of wasted memory after closing a large file. svn path=/trunk/; revision=48218
2013-03-02Don't pass -v straight to valgrind, it's rarely useful. Just increasingEvan Huus1-1/+1
num-callers is usually enough. svn path=/trunk/; revision=48017
2013-02-14Add an option for bypassing the wmem slab similar to the one forEvan Huus1-0/+1
bypassing the emem slab, to aid in debugging with valgrind. svn path=/trunk/; revision=47656
2013-01-16Add -v for verbose valgrind output.Evan Huus1-2/+3
svn path=/trunk/; revision=47113
2013-01-16As suggested in comments in sl_alloc() and sl_free(): add a new environmentJeff Morriss1-0/+1
variable (WIRESHARK_DEBUG_USE_SLICES) which turns off the slab allocator and uses g_slices instead (which can themselves be turned off by setting G_SLICE=always-malloc). This makes debugging problems in slab-allocated memory easier to find (hopefully including https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8197 ). Set WIRESHARK_DEBUG_USE_SLICES when running Valgrind on *shark. Remove unused structure member: emem_chunk_t.org. svn path=/trunk/; revision=47110
2012-12-27Change the format of the environment variable slightly to allow overridingEvan Huus1-1/+1
allocator choice to use any specific allocator, not just simple. svn path=/trunk/; revision=46816
2012-12-19Dispatch all allocator creations through a single function using an enum toEvan Huus1-1/+1
determine the desired type. This has two advantages over the old way: - just one environment variable for valgrind to override in order to guarantee that ALL allocators use memory it can track, and just one place to check that variable - allocator owners no longer have to include headers specific to their allocator, allowing them to change allocators without adjusting all their #includes svn path=/trunk/; revision=46604
2012-12-04Make the new -T option not overwrite the other options, so it canEvan Huus1-1/+1
be used in conjuction with -2 et al. svn path=/trunk/; revision=46362
2012-12-02Add an option to control whether tshark builds the tree (\"-T\").Jeff Morriss1-2/+5
Note the change in behavior: building the tree is now off by default. Complain (and exit) if we get an argument we don't understand. svn path=/trunk/; revision=46321
2012-12-01Fix typoEvan Huus1-1/+1
svn path=/trunk/; revision=46317
2012-12-01Add -r option to valgrind script for --show-reachable=yes.Evan Huus1-3/+4
svn path=/trunk/; revision=46316
2012-11-24Make the wmem scopes friendly to the valgrind script like emem is.Evan Huus1-0/+1
svn path=/trunk/; revision=46171
2012-11-09Add -n option to valgrind script that runs with -v instead of a pcap file.Evan Huus1-4/+14
Useful for find issues and leaks in non-dissection related code when you don't have a capture file handy. svn path=/trunk/; revision=45979
2012-07-26valgrind-wireshark.sh:Evan Huus1-11/+13
- add support for 2-pass dissection and config profiles - make whitespace a consistent 4-spaces fuzz-test.sh: - update 2-pass support to use -2 and not the old -P - add support for fuzz-testing under valgrind with the new -g option svn path=/trunk/; revision=44024
2012-06-28Update FSF address - part II.Jakub Zawadzki1-1/+1
svn path=/trunk/; revision=43538
2012-05-01Add copyright notices. Fix SVN properties on svnadd.Jeff Morriss1-2/+22
svn path=/trunk/; revision=42375
2012-04-30From Evan Huus via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7218 :Jeff Morriss1-3/+4
Add 'track-origins' option flag to valgrind script. svn path=/trunk/; revision=42345
2012-03-16Make it possible to run capinfos and editcap from this script.Jeff Morriss1-2/+9
svn path=/trunk/; revision=41611
2011-10-27Add a little shell script to export the appropriate variables necessary forJeff Morriss1-0/+39
running valgrind and then run it on either tshark or (if the user is very patient) Wireshark. svn path=/trunk/; revision=39627