]> git.kaiwu.me - haproxy.git/commit
MINOR: sample: store location for fetch/conv via initcalls
authorWilly Tarreau <w@1wt.eu>
Fri, 6 Mar 2026 09:49:46 +0000 (10:49 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 12 Mar 2026 17:06:38 +0000 (18:06 +0100)
commit6e819dc4fa274089c774bd2080b3d7195ac0a9ab
treee40e1e1447ea81decf56f0268ee721bc2abf3118
parent2cd0cd84c65877faf87b30b7ee11f2377acdfd3a
MINOR: sample: store location for fetch/conv via initcalls

Now keywords are registered with an exec_ctx and this one is passed
when calling ->process. The ctx is of type INITCALL when passed via
an initcall where we know the file name and line number.

This was tested with and extra "malloc(15)" added in smp_fetch_path()
which shows that it works:

  $ socat /tmp/sock1 - <<< "show profiling memory"|grep via
           Calls         |         Tot Bytes           |       Caller and method  [via]
      1893399           0       60592592              0|         0x78b2ec task_run_applet+0x3339c malloc(32) [via initcall @http_fetch.c:2416]
include/haproxy/sample-t.h
src/hlua.c
src/sample.c