Refactoring: syscall tracing: combine common fields into struct lttng_kernel_syscall_...
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 1 Nov 2021 17:43:58 +0000 (13:43 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 1 Nov 2021 19:04:35 +0000 (15:04 -0400)
commit0bb716a83d94370708a034f44dfbed4527eecfbe
treed0fe605d3ec3484d5b048c2a4b65533c9de7e365
parent5b9817aed64e239c4a2e2a1564869402074b080d
Refactoring: syscall tracing: combine common fields into struct lttng_kernel_syscall_table

There was a lot of code duplication between syscall tables associated
with ring buffers and those associated with event notifiers.

Move common fields into a struct lttng_kernel_syscall_table, and add a
syscall_table field in both struct lttng_event_notifier_group and
struct lttng_kernel_channel_common_private.

This allows removing both syscall_entry_event_notifier_probe and
syscall_exit_event_notifier_probe by using the syscall_entry_event_probe
and syscall_exit_event_probe instead for event notifiers as well.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: Ifb78755429ebf8699ac4bd3bb66af16bda1d86c4
include/lttng/events-internal.h
src/lttng-events.c
src/lttng-syscalls.c
This page took 0.025185 seconds and 4 git commands to generate.