From 0393e7288ba3a640fcc9f0d8b15d7dee231a039c Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sun, 9 Aug 2015 17:39:41 +0100 Subject: benchmarks: Record and replay calls to EXECBUFFER2 This slightly idealises the behaviour of clients with the aim of measuring the kernel overhead of different workloads. This test focuses on the cost of relocating batchbuffers. A trace file is generated with an LD_PRELOAD intercept around execbuffer, which we can then replay at our leisure. The replay replaces the real buffers with a set of empty ones so the only thing that the kernel has to do is parse the relocations. but without a real workload we lose the impact of having to rewrite active buffers. Signed-off-by: Chris Wilson --- benchmarks/Makefile.am | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'benchmarks/Makefile.am') diff --git a/benchmarks/Makefile.am b/benchmarks/Makefile.am index e042dd17..5bacd52e 100644 --- a/benchmarks/Makefile.am +++ b/benchmarks/Makefile.am @@ -4,3 +4,7 @@ include Makefile.sources AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/lib AM_CFLAGS = $(DRM_CFLAGS) $(CWARNFLAGS) $(CAIRO_CFLAGS) $(LIBUNWIND_CFLAGS) LDADD = $(top_builddir)/lib/libintel_tools.la $(DRM_LIBS) $(PCIACCESS_LIBS) $(CAIRO_LIBS) $(LIBUNWIND_LIBS) -lm + +noinst_LTLIBRARIES = generate_trace.la +generate_trace_la_LDFLAGS = -module -avoid-version -no-undefined +generate_trace_la_LIBADD = -ldl -- cgit v1.2.3