mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-20 14:26:17 +00:00
This does everything the aub dump functionality in libdrm does, but without being part of libdrm. This moves the very developer oriented functionality out of core libdrm and adds some flexibility in how we activate it (we can specify filename, for example). Most importantly, this lets us dump aub files for tools and/or drivers that don't use libdrm, without having to add that code to each of those projects. The tool is used much like strace or valgrind. For example: $ intel_aubdump -v --output=stuff.aub -- glxgears -geometry 500x500 will launch glxgears with its options and enable aub dumping and pass the -v and --output=stuff.aub options to the aub dumper. Signed-off-by: Kristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
25 lines
696 B
Makefile
25 lines
696 B
Makefile
include Makefile.sources
|
|
|
|
SUBDIRS = null_state_gen
|
|
|
|
if HAVE_DUMPER
|
|
SUBDIRS += quick_dump
|
|
endif
|
|
|
|
AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/lib
|
|
AM_CFLAGS = $(DEBUG_CFLAGS) $(DRM_CFLAGS) $(PCIACCESS_CFLAGS) $(CWARNFLAGS) $(CAIRO_CFLAGS) $(LIBUNWIND_CFLAGS)
|
|
LDADD = $(top_builddir)/lib/libintel_tools.la $(DRM_LIBS) $(PCIACCESS_LIBS) $(CAIRO_LIBS) $(LIBUDEV_LIBS) $(LIBUNWIND_LIBS) -lm
|
|
|
|
|
|
# aubdumper
|
|
|
|
module_LTLIBRARIES = intel_aubdump.la
|
|
moduledir = $(libdir)
|
|
intel_aubdump_la_LDFLAGS = -module -avoid-version -no-undefined
|
|
intel_aubdump_la_SOURCES = aubdump.c intel_aub.h
|
|
intel_aubdump_la_LIBADD = $(top_builddir)/lib/libintel_tools.la
|
|
|
|
bin_SCRIPTS = intel_aubdump
|
|
CLEANFILES = $(bin_SCRIPTS)
|
|
|