Blame liblttng-ust-dl/ust_dl.h

Packit c04fcb
#undef TRACEPOINT_PROVIDER
Packit c04fcb
#define TRACEPOINT_PROVIDER lttng_ust_dl
Packit c04fcb
Packit c04fcb
#if !defined(_TRACEPOINT_UST_DL_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
Packit c04fcb
#define _TRACEPOINT_UST_DL_H
Packit c04fcb
Packit c04fcb
#ifdef __cplusplus
Packit c04fcb
extern "C" {
Packit c04fcb
#endif
Packit c04fcb
Packit c04fcb
/*
Packit c04fcb
 * Copyright (C) 2013  Paul Woegerer <paul_woegerer@mentor.com>
Packit c04fcb
 * Copyright (C) 2015  Antoine Busque <abusque@efficios.com>
Packit c04fcb
 *
Packit c04fcb
 * Permission is hereby granted, free of charge, to any person obtaining a copy
Packit c04fcb
 * of this software and associated documentation files (the "Software"), to deal
Packit c04fcb
 * in the Software without restriction, including without limitation the rights
Packit c04fcb
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
Packit c04fcb
 * copies of the Software, and to permit persons to whom the Software is
Packit c04fcb
 * furnished to do so, subject to the following conditions:
Packit c04fcb
 *
Packit c04fcb
 * The above copyright notice and this permission notice shall be included in
Packit c04fcb
 * all copies or substantial portions of the Software.
Packit c04fcb
 *
Packit c04fcb
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
Packit c04fcb
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
Packit c04fcb
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
Packit c04fcb
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
Packit c04fcb
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
Packit c04fcb
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
Packit c04fcb
 * SOFTWARE.
Packit c04fcb
 */
Packit c04fcb
Packit c04fcb
#include <stdint.h>
Packit c04fcb
#include <unistd.h>
Packit c04fcb
Packit c04fcb
#define LTTNG_UST_DL_PROVIDER
Packit c04fcb
#include <lttng/tracepoint.h>
Packit c04fcb
Packit c04fcb
TRACEPOINT_EVENT(lttng_ust_dl, dlopen,
Packit c04fcb
	TP_ARGS(void *, ip, void *, baddr, const char*, path,
Packit c04fcb
		uint64_t, memsz, uint8_t, has_build_id,
Packit c04fcb
		uint8_t, has_debug_link),
Packit c04fcb
	TP_FIELDS(
Packit c04fcb
		ctf_integer_hex(void *, baddr, baddr)
Packit c04fcb
		ctf_integer(uint64_t, memsz, memsz)
Packit c04fcb
		ctf_string(path, path)
Packit c04fcb
		ctf_integer(uint8_t, has_build_id, has_build_id)
Packit c04fcb
		ctf_integer(uint8_t, has_debug_link, has_debug_link)
Packit c04fcb
	)
Packit c04fcb
)
Packit c04fcb
Packit c04fcb
TRACEPOINT_EVENT(lttng_ust_dl, build_id,
Packit c04fcb
	TP_ARGS(
Packit c04fcb
		void *, ip,
Packit c04fcb
		void *, baddr,
Packit c04fcb
		uint8_t *, build_id,
Packit c04fcb
		size_t, build_id_len
Packit c04fcb
	),
Packit c04fcb
	TP_FIELDS(
Packit c04fcb
		ctf_integer_hex(void *, baddr, baddr)
Packit c04fcb
		ctf_sequence_hex(uint8_t, build_id, build_id,
Packit c04fcb
			size_t, build_id_len)
Packit c04fcb
	)
Packit c04fcb
)
Packit c04fcb
Packit c04fcb
TRACEPOINT_EVENT(lttng_ust_dl, debug_link,
Packit c04fcb
	TP_ARGS(
Packit c04fcb
		void *, ip,
Packit c04fcb
		void *, baddr,
Packit c04fcb
		char *, filename,
Packit c04fcb
		uint32_t, crc
Packit c04fcb
	),
Packit c04fcb
	TP_FIELDS(
Packit c04fcb
		ctf_integer_hex(void *, baddr, baddr)
Packit c04fcb
		ctf_integer(uint32_t, crc, crc)
Packit c04fcb
		ctf_string(filename, filename)
Packit c04fcb
	)
Packit c04fcb
)
Packit c04fcb
Packit c04fcb
TRACEPOINT_EVENT(lttng_ust_dl, dlclose,
Packit c04fcb
	TP_ARGS(void *, ip, void *, baddr),
Packit c04fcb
	TP_FIELDS(
Packit c04fcb
		ctf_integer_hex(void *, baddr, baddr)
Packit c04fcb
	)
Packit c04fcb
)
Packit c04fcb
Packit c04fcb
#endif /* _TRACEPOINT_UST_DL_H */
Packit c04fcb
Packit c04fcb
#undef TRACEPOINT_INCLUDE
Packit c04fcb
#define TRACEPOINT_INCLUDE "./ust_dl.h"
Packit c04fcb
Packit c04fcb
/* This part must be outside ifdef protection */
Packit c04fcb
#include <lttng/tracepoint-event.h>
Packit c04fcb
Packit c04fcb
#ifdef __cplusplus
Packit c04fcb
}
Packit c04fcb
#endif