/usr/src/lttng-modules-2.5.1/probes/lttng-events-reset.h is in lttng-modules-dkms 2.5.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 | /*
* lttng-events-reset.h
*
* Copyright (C) 2010-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; only
* version 2.1 of the License.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/* Reset macros used within TRACE_EVENT to "nothing" */
#undef __field_full
#define __field_full(_type, _item, _order, _base)
#undef __array_enc_ext
#define __array_enc_ext(_type, _item, _length, _order, _base, _encoding)
#undef __dynamic_array_enc_ext
#define __dynamic_array_enc_ext(_type, _item, _length, _order, _base, _encoding)
#undef __dynamic_array_enc_ext_2
#define __dynamic_array_enc_ext_2(_type, _item, _length1, _length2, _order, _base, _encoding)
#undef __dynamic_array_len
#define __dynamic_array_len(_type, _item, _length)
#undef __string
#define __string(_item, _src)
#undef tp_assign
#define tp_assign(dest, src)
#undef tp_memcpy
#define tp_memcpy(dest, src, len)
#undef tp_memcpy_dyn
#define tp_memcpy_dyn(dest, src, len)
#undef tp_strcpy
#define tp_strcpy(dest, src)
#undef __get_str
#define __get_str(field)
#undef __get_dynamic_array
#define __get_dynamic_array(field)
#undef __get_dynamic_array_len
#define __get_dynamic_array_len(field)
#undef TP_PROTO
#define TP_PROTO(args...)
#undef TP_ARGS
#define TP_ARGS(args...)
#undef TP_STRUCT__entry
#define TP_STRUCT__entry(args...)
#undef TP_fast_assign
#define TP_fast_assign(args...)
#undef __perf_count
#define __perf_count(args...)
#undef __perf_addr
#define __perf_addr(args...)
#undef TP_perf_assign
#define TP_perf_assign(args...)
#undef TP_printk
#define TP_printk(args...)
#undef DECLARE_EVENT_CLASS
#define DECLARE_EVENT_CLASS(_name, _proto, _args, _tstruct, _assign, _print)
#undef DECLARE_EVENT_CLASS_NOARGS
#define DECLARE_EVENT_CLASS_NOARGS(_name, _tstruct, _assign, _print)
#undef DEFINE_EVENT_MAP
#define DEFINE_EVENT_MAP(_template, _name, _map, _proto, _args)
#undef DEFINE_EVENT_MAP_NOARGS
#define DEFINE_EVENT_MAP_NOARGS(_template, _name, _map)
#undef TRACE_EVENT_FLAGS
#define TRACE_EVENT_FLAGS(name, value)
|