X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=instrumentation%2Fevents%2Flttng-module%2Farch%2Fx86%2Fexceptions.h;fp=instrumentation%2Fevents%2Flttng-module%2Farch%2Fx86%2Fexceptions.h;h=0000000000000000000000000000000000000000;hb=7c6d929d62a6e24fb1dbeaee5cd2c8afe77720b7;hp=eb55138a7a2ed2e0029ba0d0e5c40ec1e6727011;hpb=cf77d12083b5092eca8c6f9899ec0892756845aa;p=lttng-modules.git diff --git a/instrumentation/events/lttng-module/arch/x86/exceptions.h b/instrumentation/events/lttng-module/arch/x86/exceptions.h deleted file mode 100644 index eb55138a..00000000 --- a/instrumentation/events/lttng-module/arch/x86/exceptions.h +++ /dev/null @@ -1,53 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ -#if !defined(LTTNG_TRACE_EXCEPTIONS_H) || defined(TRACE_HEADER_MULTI_READ) -#define LTTNG_TRACE_EXCEPTIONS_H - -#include -#include - -#undef TRACE_SYSTEM -#define TRACE_SYSTEM x86_exceptions - -LTTNG_TRACEPOINT_EVENT_CLASS(x86_exceptions_class, - - TP_PROTO(unsigned long address, struct pt_regs *regs, - unsigned long error_code), - - TP_ARGS(address, regs, error_code), - - TP_FIELDS( - ctf_integer_hex(unsigned long, address, address) - ctf_integer_hex(unsigned long, ip, regs->ip) - /* - * Note: we cast error_code from unsigned long - * to unsigned char to save space in the trace. - * Currently, only 5 low bits are used. Should be made - * larger if error codes are added to the kernel. - */ - ctf_integer_hex(unsigned char, error_code, error_code) - ) -) - -#define LTTNG_EXCEPTIONS_TRACEPOINT_EVENT_INSTANCE_MAP(name, map) \ -LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(x86_exceptions_class, \ - name, \ - map, \ - TP_PROTO(unsigned long address, struct pt_regs *regs, \ - unsigned long error_code), \ - TP_ARGS(address, regs, error_code) \ -) - -LTTNG_EXCEPTIONS_TRACEPOINT_EVENT_INSTANCE_MAP(page_fault_user, - x86_exceptions_page_fault_user) -LTTNG_EXCEPTIONS_TRACEPOINT_EVENT_INSTANCE_MAP(page_fault_kernel, - x86_exceptions_page_fault_kernel) - -#endif /* LTTNG_TRACE_EXCEPTIONS_H */ - -#undef TRACE_INCLUDE_PATH -#define TRACE_INCLUDE_PATH instrumentation/events/lttng-module/arch/x86 -#undef TRACE_INCLUDE_FILE -#define TRACE_INCLUDE_FILE exceptions - -/* This part must be outside protection */ -#include