lttng_ust_init_thread: initialise cached context values
authorNorbert Lange <nolange79@gmail.com>
Mon, 1 Aug 2022 14:36:59 +0000 (16:36 +0200)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 1 Aug 2022 15:10:42 +0000 (11:10 -0400)
commitc246521ddcba1d1d28cfa0482aa500b9122e7264
tree05429b6ce82bd44709386c1891a13834f23d23b8
parent1c0569ec0d094571d181d1fce53ecfce8877614f
lttng_ust_init_thread: initialise cached context values

Modify all relevant *_alloc_tls functions so that they take
flags for 'init'. Rename them to init_thread for consistency.

So far define one flag LTTNG_UST_INIT_THREAD_CONTEXT_CACHE,
this will warm up cached values so less is done during
the first tracepoint.

The function 'lttng_ust_init_thread' will use all available
flags, software can opt-in to do work early instead
of lazily during tracepoints.

Signed-off-by: Norbert Lange <nolange79@gmail.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
13 files changed:
src/lib/lttng-ust/lttng-context-cgroup-ns.c
src/lib/lttng-ust/lttng-context-ipc-ns.c
src/lib/lttng-ust/lttng-context-net-ns.c
src/lib/lttng-ust/lttng-context-perf-counters.c
src/lib/lttng-ust/lttng-context-procname.c
src/lib/lttng-ust/lttng-context-provider.c
src/lib/lttng-ust/lttng-context-time-ns.c
src/lib/lttng-ust/lttng-context-uts-ns.c
src/lib/lttng-ust/lttng-context-vtid.c
src/lib/lttng-ust/lttng-probes.c
src/lib/lttng-ust/lttng-tracer-core.h
src/lib/lttng-ust/lttng-ust-comm.c
src/lib/lttng-ust/lttng-ust-statedump.c
This page took 0.028736 seconds and 4 git commands to generate.