]> git.ipfire.org Git - people/ms/suricata.git/commit - configure.ac
profiling: add per lock location profiling
authorVictor Julien <victor@inliniac.net>
Mon, 19 Mar 2012 09:28:34 +0000 (10:28 +0100)
committerVictor Julien <victor@inliniac.net>
Mon, 19 Mar 2012 09:28:34 +0000 (10:28 +0100)
commitd908e707d72923cee0712644d223bd8bf6223d4a
tree38fa0228dbbcbbf1360feba5f0a6f4cff94d1904
parent41e9dba20bdf74344f352e05431aa27d9550e527
profiling: add per lock location profiling

Add profiling per lock location in the code. Accounts how often a
lock is requested, how often it was contended, the max number of
ticks spent waiting for it, avg number of ticks waiting for it and
the total ticks for that location.

Added a new configure flag --enable-profiling-locks to enable this
feature.
14 files changed:
configure.in
src/Makefile.am
src/decode.h
src/suricata-common.h
src/suricata.c
src/threads.h
src/tm-threads.c
src/util-error.c
src/util-error.h
src/util-profiling-locks.c [new file with mode: 0644]
src/util-profiling-locks.h [new file with mode: 0644]
src/util-profiling.c
src/util-profiling.h
suricata.yaml.in