MINOR: activity/memprofile: also monitor strdup() activity
authorWilly Tarreau <w@1wt.eu>
Thu, 21 Nov 2024 07:45:04 +0000 (08:45 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 9 Jan 2025 14:56:04 +0000 (15:56 +0100)
commit1a9607b2cfc58a935f7245eafee5de0ba8e3062b
tree8249ce6cc16e9ab6e1ed11586ce22c77705293bc
parente19d47f5a1ecef97ddd6e40d83b354c459b8cce6
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.

(cherry picked from commit 33c0ce299da0a56a01ec1f59ebc78e8d59081acc)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
include/haproxy/activity-t.h
src/activity.c