API refactoring: introduce probe context
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 22 Apr 2021 12:46:18 +0000 (08:46 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 22 Apr 2021 15:22:27 +0000 (11:22 -0400)
commitb2e37d27accf5e32128b82392dbe1a9522c7dc20
treeeb833de74f28bd36298cf5fd3d0ed291d3599013
parentf3b06377a014332947b20cc4c266369ea85ddcfa
API refactoring: introduce probe context

Introduce a "probe context" to allow passing the "ip" context from the
probe function to the get_value callback used by the bytecode
interpreter. This enables the "ip" context to be used from the filter
bytecode and from the capture bytecode.

Also fix signedness of the return type of the get_value context
callbacks for cases where the type is unsigned.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I2cb40a9b3bb34c42392bb663368e5af360554dbb
38 files changed:
include/lttng/ust-events.h
include/lttng/ust-ringbuffer-context.h
include/lttng/ust-tracepoint-event.h
src/common/events.h
src/common/ust-context-provider.h
src/lib/lttng-ust-java-agent/jni/common/lttng_ust_context.c
src/lib/lttng-ust/context-provider-internal.h
src/lib/lttng-ust/event-notifier-notification.c
src/lib/lttng-ust/events.h
src/lib/lttng-ust/lttng-bytecode-interpreter.c
src/lib/lttng-ust/lttng-bytecode.h
src/lib/lttng-ust/lttng-context-cgroup-ns.c
src/lib/lttng-ust/lttng-context-cpu-id.c
src/lib/lttng-ust/lttng-context-ip.c
src/lib/lttng-ust/lttng-context-ipc-ns.c
src/lib/lttng-ust/lttng-context-mnt-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-pid-ns.c
src/lib/lttng-ust/lttng-context-procname.c
src/lib/lttng-ust/lttng-context-pthread-id.c
src/lib/lttng-ust/lttng-context-time-ns.c
src/lib/lttng-ust/lttng-context-user-ns.c
src/lib/lttng-ust/lttng-context-uts-ns.c
src/lib/lttng-ust/lttng-context-vegid.c
src/lib/lttng-ust/lttng-context-veuid.c
src/lib/lttng-ust/lttng-context-vgid.c
src/lib/lttng-ust/lttng-context-vpid.c
src/lib/lttng-ust/lttng-context-vsgid.c
src/lib/lttng-ust/lttng-context-vsuid.c
src/lib/lttng-ust/lttng-context-vtid.c
src/lib/lttng-ust/lttng-context-vuid.c
src/lib/lttng-ust/lttng-context.c
src/lib/lttng-ust/lttng-events.c
src/lib/lttng-ust/lttng-ring-buffer-client-template.h
src/lib/lttng-ust/lttng-tracer-core.h
src/lib/lttng-ust/ust-core.c
tests/compile/test-app-ctx/hello.c
This page took 0.028888 seconds and 4 git commands to generate.