linux/include/trace/stages/stage5_get_offsets.h

/* SPDX-License-Identifier: GPL-2.0 */

/* Stage 5 definitions for creating trace events */

/*
 * remember the offset of each array from the beginning of the event.
 */

#undef __entry
#define __entry

#ifndef __STAGE5_STRING_SRC_H
#define __STAGE5_STRING_SRC_H
static inline const char *__string_src(const char *str)
{}
#endif /* __STAGE5_STRING_SRC_H */

/*
 * Fields should never declare an array: i.e. __field(int, arr[5])
 * If they do, it will cause issues in parsing and possibly corrupt the
 * events. To prevent that from happening, test the sizeof() a fictitious
 * type called "struct _test_no_array_##item" which will fail if "item"
 * contains array elements (like "arr[5]").
 *
 * If you hit this, use __array(int, arr, 5) instead.
 */
#undef __field
#define __field(type, item)

#undef __field_ext
#define __field_ext(type, item, filter_type)

#undef __field_struct
#define __field_struct(type, item)

#undef __field_struct_ext
#define __field_struct_ext(type, item, filter_type)

#undef __array
#define __array(type, item, len)

#undef __dynamic_array
#define __dynamic_array(type, item, len)

#undef __string
#define __string(item, src)

#undef __string_len
#define __string_len(item, src, len)

#undef __vstring
#define __vstring(item, fmt, ap)

#undef __rel_dynamic_array
#define __rel_dynamic_array(type, item, len)

#undef __rel_string
#define __rel_string(item, src)

#undef __rel_string_len
#define __rel_string_len(item, src, len)

/*
 * __bitmask_size_in_bytes_raw is the number of bytes needed to hold
 * num_possible_cpus().
 */
#define __bitmask_size_in_bytes_raw(nr_bits)

#define __bitmask_size_in_longs(nr_bits)

/*
 * __bitmask_size_in_bytes is the number of bytes needed to hold
 * num_possible_cpus() padded out to the nearest long. This is what
 * is saved in the buffer, just to be consistent.
 */
#define __bitmask_size_in_bytes(nr_bits)

#undef __bitmask
#define __bitmask(item, nr_bits)

#undef __cpumask
#define __cpumask(item)

#undef __rel_bitmask
#define __rel_bitmask(item, nr_bits)

#undef __rel_cpumask
#define __rel_cpumask(item)

#undef __sockaddr
#define __sockaddr(field, len)

#undef __rel_sockaddr
#define __rel_sockaddr(field, len)