~lttng/lttng-modules/trunk

« back to all changes in this revision

Viewing changes to include/instrumentation/events/skb.h

  • Committer: Mathieu Desnoyers
  • Author(s): Kienan Stewart
  • Date: 2023-10-19 15:43:28 UTC
  • Revision ID: git-v1:f00168b56ad642e0369c03b8cd730be85dc46188
Fix build for RHEL 8.8 with linux 4.18.0-477.10.1+

4.18.0-477.10.1 introduces backports a change which updates the
`kfree_skb` trace event to the 3-argument version used in more recent
kernel versions.

Change-Id: I5a1071a59659b76e1499beae3388159ca8ced1f7
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
 * Tracepoint for free an sk_buff:
15
15
 */
16
16
#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,17,0) \
17
 
        || LTTNG_KERNEL_RANGE(5,15,58, 5,16,0))
 
17
        || LTTNG_KERNEL_RANGE(5,15,58, 5,16,0) \
 
18
        || LTTNG_RHEL_KERNEL_RANGE(4,18,0,477,10,1, 4,19,0,0,0,0))
18
19
LTTNG_TRACEPOINT_ENUM(skb_drop_reason,
19
20
        TP_ENUM_VALUES(
20
21
                ctf_enum_value("NOT_SPECIFIED", SKB_DROP_REASON_NOT_SPECIFIED)
41
42
 
42
43
#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,17,0) \
43
44
        || LTTNG_KERNEL_RANGE(5,15,58, 5,16,0) \
44
 
        || LTTNG_RHEL_KERNEL_RANGE(5,14,0,70,0,0, 5,15,0,0,0,0))
 
45
        || LTTNG_RHEL_KERNEL_RANGE(5,14,0,70,0,0, 5,15,0,0,0,0) \
 
46
        || LTTNG_RHEL_KERNEL_RANGE(4,18,0,477,10,1, 4,19,0,0,0,0))
45
47
LTTNG_TRACEPOINT_EVENT_MAP(kfree_skb,
46
48
 
47
49
        skb_kfree,