include $(top_srcdir)/Makefile.tool-tests.am
-dist_noinst_SCRIPTS = filter_stderr filter_copy
+dist_noinst_SCRIPTS = filter_stderr filter_copy filter_user_histo
EXTRA_DIST = \
acc.stderr.exp acc.vgtest \
--- /dev/null
+#! /bin/sh
+
+# It's impossible to get exact matches for copy counts because even trivial C
+# programs do a few memcpy/strcpy calls. So we allow some fuzzy matching.
+# So we allow 1,000,000..1,009,999 bytes and 1,000..1,099 blocks.
+
+./filter_stderr "$@" |
+sed -e "s/address for user histogram request not found .*/address for user histogram request not found/"
+
Warning: request for user histogram of size 500 is smaller than the normal histogram limit, request ignored
-Warning: address for user histogram request not found 55b2820
+Warning: address for user histogram request not found
Warning: request for user histogram of size 100000 is larger than the maximum user request limit, request ignored
Total: 102,500 bytes in 3 blocks
At t-gmax: 100,500 bytes in 2 blocks
prog: user_histo1
vgopts: --dhat-out-file=dhat.out
+stderr_filter: filter_user_histo
cleanup: rm dhat.out