]> git.ipfire.org Git - thirdparty/nftables.git/commit
configure: Implement --enable-profiling option
authorPhil Sutter <phil@nwl.cc>
Fri, 23 Jan 2026 00:38:20 +0000 (01:38 +0100)
committerPhil Sutter <phil@nwl.cc>
Fri, 13 Feb 2026 13:08:30 +0000 (14:08 +0100)
commit868040f8922382925e75bf3579f66cfcd2f080e7
treedb9799d9c94ce38a1ae1dbd44b670f31c2a400c7
parent4d386ebf3335ac3c70cb43bef3c7dd14b8562c3a
configure: Implement --enable-profiling option

This will set compiler flag --coverage so code coverage may be inspected
using gcov.

In order to successfully profile processes which are killed or
interrupted as well, add a signal handler for those cases which calls
exit(). This is relevant for test cases invoking nft monitor.

Signed-off-by: Phil Sutter <phil@nwl.cc>
.gitignore
Makefile.am
configure.ac
include/profiling.h [new file with mode: 0644]
src/mnl.c
src/profiling.c [new file with mode: 0644]