Commit Graph

27 Commits

Author SHA1 Message Date
Martin Mathieson b49fbad27d Add a couple of missing lines from the usage output.
svn path=/trunk/; revision=50043
2013-06-19 18:06:46 +00:00
Jeff Morriss 1cc0587d00 Add a -Y option to match test-captures.sh: it runs tshark with a read filter but without building the tree.
svn path=/trunk/; revision=49797
2013-06-05 21:30:08 +00:00
Evan Huus eae1f37865 Use the local libtool rather than whatever is in PATH. This works just
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-28 22:29:02 +00:00
Evan Huus 396a1881b7 Add -p option to the valgrind script for profiling with callgrind.
svn path=/trunk/; revision=49543
2013-05-23 02:30:40 +00:00
Evan Huus 69fae76be1 Support running the massif valgrind tool for memory profiling.
svn path=/trunk/; revision=49251
2013-05-11 19:03:54 +00:00
Evan Huus 3b4a82d26a Add -W option to valgrind script that just runs the gui without any capture
files.

svn path=/trunk/; revision=48320
2013-03-15 16:42:05 +00:00
Evan Huus 419d10656e Update usage info for valgrind script. We almost need a proper man page for
this now.

svn path=/trunk/; revision=48230
2013-03-10 15:07:42 +00:00
Evan Huus aafe8b18e9 Remove the wmem slab. It was an optimization mimicking the emem slab
(removed in r48218) which did nothing particularly useful. Also lets us remove
another debugging environment variable.

svn path=/trunk/; revision=48219
2013-03-09 20:16:33 +00:00
Evan Huus 122b7cb6df Remove the emem slab feature (sl_* functions) completely, replacing it with
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-09 20:02:19 +00:00
Evan Huus 16bda3caf4 Don't pass -v straight to valgrind, it's rarely useful. Just increasing
num-callers is usually enough.

svn path=/trunk/; revision=48017
2013-03-02 21:16:32 +00:00
Evan Huus 5071e8b627 Add an option for bypassing the wmem slab similar to the one for
bypassing the emem slab, to aid in debugging with valgrind.

svn path=/trunk/; revision=47656
2013-02-14 16:07:25 +00:00
Evan Huus d8967afa61 Add -v for verbose valgrind output.
svn path=/trunk/; revision=47113
2013-01-16 14:02:30 +00:00
Jeff Morriss 99ce4232cb As suggested in comments in sl_alloc() and sl_free(): add a new environment
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
2013-01-16 03:34:29 +00:00
Evan Huus 442b61d0a4 Change the format of the environment variable slightly to allow overriding
allocator choice to use any specific allocator, not just simple.

svn path=/trunk/; revision=46816
2012-12-27 22:51:33 +00:00
Evan Huus 5cf858ec52 Dispatch all allocator creations through a single function using an enum to
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-19 00:43:36 +00:00
Evan Huus f72aa597c7 Make the new -T option not overwrite the other options, so it can
be used in conjuction with -2 et al.

svn path=/trunk/; revision=46362
2012-12-04 00:05:58 +00:00
Jeff Morriss b5d14d6dcd Add an option to control whether tshark builds the tree (\"-T\").
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-02 02:58:29 +00:00
Evan Huus e2c9d02ba8 Fix typo
svn path=/trunk/; revision=46317
2012-12-01 20:51:20 +00:00
Evan Huus d730f8d348 Add -r option to valgrind script for --show-reachable=yes.
svn path=/trunk/; revision=46316
2012-12-01 20:49:27 +00:00
Evan Huus 706211b642 Make the wmem scopes friendly to the valgrind script like emem is.
svn path=/trunk/; revision=46171
2012-11-24 19:02:05 +00:00
Evan Huus ca21cf8083 Add -n option to valgrind script that runs with -v instead of a pcap file.
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-11-09 02:10:48 +00:00
Evan Huus 69a95ad3a2 valgrind-wireshark.sh:
- 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-07-26 02:38:34 +00:00
Jakub Zawadzki b18e880040 Update FSF address - part II.
svn path=/trunk/; revision=43538
2012-06-28 23:18:38 +00:00
Jeff Morriss 98b8a9895a Add copyright notices. Fix SVN properties on svnadd.
svn path=/trunk/; revision=42375
2012-05-01 18:59:12 +00:00
Jeff Morriss 2c103b9d5f From Evan Huus via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7218 :
Add 'track-origins' option flag to valgrind script.

svn path=/trunk/; revision=42345
2012-04-30 13:20:27 +00:00
Jeff Morriss 1108df5539 Make it possible to run capinfos and editcap from this script.
svn path=/trunk/; revision=41611
2012-03-16 14:12:01 +00:00
Jeff Morriss 4de661bb9f Add a little shell script to export the appropriate variables necessary for
running valgrind and then run it on either tshark or (if the user is very
patient) Wireshark.

svn path=/trunk/; revision=39627
2011-10-27 02:32:32 +00:00