From 7c2a5d79afd81f0e773ba7ddc4fe40c4c3d62627 Mon Sep 17 00:00:00 2001 From: bdrewery Date: Tue, 6 Oct 2015 21:58:38 +0000 Subject: truss: Add support for utrace(2). This uses the kdump(1) utrace support code directly until a common library is created. This allows malloc(3) tracing with MALLOC_CONF=utrace:true and rtld tracing with LD_UTRACE=1. Unknown utrace(2) data is just printed as hex. PR: 43819 [inspired by] Reviewed by: jhb MFC after: 2 weeks Relnotes: yes Differential Revision: https://reviews.freebsd.org/D3819 --- usr.bin/truss/Makefile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'usr.bin/truss/Makefile') diff --git a/usr.bin/truss/Makefile b/usr.bin/truss/Makefile index 1cd0a9c..8c78196 100644 --- a/usr.bin/truss/Makefile +++ b/usr.bin/truss/Makefile @@ -10,6 +10,9 @@ SRCS+= ${MACHINE_ARCH}-fbsd.c SRCS+= ${MACHINE_CPUARCH}-fbsd.c .endif +.PATH: ${.CURDIR:H}/kdump +SRCS+= utrace.c + CFLAGS+= -I${.CURDIR} -I. CLEANFILES= syscalls.master syscalls.h ioctl.c -- cgit v1.1