Files
geramyloveless 953cf0149c mac_linuxgpu: upstream Linux amdgpu on macOS
Runs the unmodified upstream Linux amdgpu and amdkfd drivers on Apple
Silicon Macs inside a DriverKit system extension, for AMD GPUs attached
over Thunderbolt. The Linux sources come from a pinned submodule and are
compiled against linuxu, a userspace implementation of the Linux kernel
APIs they use. Includes the HSA runtime, the host installer app, the
setup and firmware fetch scripts, and the offline test suite.
2026-10-02 18:49:17 -07:00

26 lines
953 B
C

/* linuxu: SHIM (tracepoint no-op layer for the userspace build) */
#ifndef _LINUXU_TRACEPOINT_H
#define _LINUXU_TRACEPOINT_H
/*
* The linuxu userspace build has no ftrace infrastructure. Tracepoints
* (TRACE_EVENT/DEFINE_EVENT/DECLARE_TRACE in amdgpu_trace.h,
* amdgpu_trace_points.c, drm_trace_points.c, ...) compile to nothing:
* the trace_*() call sites expand to empty statements, and the
* *_tracepoints.c files (which only *define* tracepoints) produce no
* symbols. This header is the anchor the linux/ chunk's <linux/tracepoint.h>
* and any <trace/...> include resolves into for that purpose.
*/
#include <trace/define_trace.h>
/*
* No-op tracepoint "registration" so that DEFINE_TRACE/DECLARE_TRACE
* expansions (which reference these) link/compile to nothing.
*/
#define DEFINE_TRACE(name, proto, args)
#define DEFINE_TRACE_FN(name, reg, unreg, proto, args)
#define DEFINE_TRACE_SYSCALL(name, reg, unreg, proto, args)
#endif