]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: activity/memprofile: also monitor strdup() activity
authorWilly Tarreau <w@1wt.eu>
Thu, 21 Nov 2024 07:45:04 +0000 (08:45 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 21 Nov 2024 18:58:06 +0000 (19:58 +0100)
commit33c0ce299da0a56a01ec1f59ebc78e8d59081acc
treec353dc3cc7e58781938563ed102df90f2f12ec78
parent623a2c4e19e3b0680f9b1ad3d4a04bd3c18b2274
MINOR: activity/memprofile: also monitor strdup() activity

Some memory profiling outputs have showed negative counters, very likely
due to some libs calling strdup(). Let's add it to the list of monitored
activities.

Actually even haproxy itself uses some. Having "profiling.memory on" in
the config reveals 35 call places.
include/haproxy/activity-t.h
src/activity.c