|
From: <sv...@va...> - 2006-01-22 01:08:48
|
Author: sewardj Date: 2006-01-22 01:08:40 +0000 (Sun, 22 Jan 2006) New Revision: 5579 Log: Test to check that cachegrind's BB_info management system isn't confused by function wrapping. Added: trunk/cachegrind/tests/wrap5.c trunk/cachegrind/tests/wrap5.stderr.exp trunk/cachegrind/tests/wrap5.stdout.exp trunk/cachegrind/tests/wrap5.vgtest Modified: trunk/cachegrind/tests/Makefile.am Modified: trunk/cachegrind/tests/Makefile.am =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cachegrind/tests/Makefile.am 2006-01-21 03:47:44 UTC (rev 5578) +++ trunk/cachegrind/tests/Makefile.am 2006-01-22 01:08:40 UTC (rev 5579) @@ -23,11 +23,13 @@ EXTRA_DIST =3D $(noinst_SCRIPTS) \ chdir.vgtest chdir.stderr.exp \ clreq.vgtest clreq.stderr.exp \ - dlclose.vgtest dlclose.stderr.exp dlclose.stdout.exp + dlclose.vgtest dlclose.stderr.exp dlclose.stdout.exp \ + wrap5.vgtest wrap5.stderr.exp wrap5.stdout.exp =20 check_PROGRAMS =3D \ - chdir clreq dlclose myprint.so + chdir clreq dlclose myprint.so wrap5 =20 +AM_CPPFLAGS =3D -I$(top_srcdir)/include AM_CFLAGS =3D $(WERROR) -Winline -Wall -Wshadow -g $(AM_FLAG_M3264_PRI= ) =20 # C ones Added: trunk/cachegrind/tests/wrap5.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cachegrind/tests/wrap5.c (rev 0) +++ trunk/cachegrind/tests/wrap5.c 2006-01-22 01:08:40 UTC (rev 5579) @@ -0,0 +1 @@ +link ../../memcheck/tests/wrap5.c \ No newline at end of file Property changes on: trunk/cachegrind/tests/wrap5.c ___________________________________________________________________ Name: svn:special + * Added: trunk/cachegrind/tests/wrap5.stderr.exp =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cachegrind/tests/wrap5.stderr.exp (rev = 0) +++ trunk/cachegrind/tests/wrap5.stderr.exp 2006-01-22 01:08:40 UTC (rev = 5579) @@ -0,0 +1,17 @@ + + +I refs: +I1 misses: +L2i misses: +I1 miss rate: +L2i miss rate: + +D refs: +D1 misses: +L2d misses: +D1 miss rate: +L2d miss rate: + +L2 refs: +L2 misses: +L2 miss rate: Added: trunk/cachegrind/tests/wrap5.stdout.exp =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cachegrind/tests/wrap5.stdout.exp (rev = 0) +++ trunk/cachegrind/tests/wrap5.stdout.exp 2006-01-22 01:08:40 UTC (rev = 5579) @@ -0,0 +1,37 @@ +computing fact1(7) +in wrapper1-pre: fact(7) +in wrapper2-pre: fact(6) +in wrapper1-pre: fact(5) +in wrapper2-pre: fact(4) +in wrapper1-pre: fact(3) +in wrapper2-pre: fact(2) +in wrapper1-pre: fact(1) +in wrapper2-pre: fact(0) +in wrapper2-post: fact(0) =3D 1 +in wrapper1-post: fact(1) =3D 1 +in wrapper2-post: fact(2) =3D 2 +in wrapper1-post: fact(3) =3D 6 +in wrapper2-pre: fact(2) +in wrapper1-pre: fact(1) +in wrapper2-pre: fact(0) +in wrapper2-post: fact(0) =3D 1 +in wrapper1-post: fact(1) =3D 1 +in wrapper2-post: fact(2) =3D 2 +in wrapper2-post: fact(4) =3D 32 +in wrapper1-post: fact(5) =3D 160 +in wrapper2-pre: fact(2) +in wrapper1-pre: fact(1) +in wrapper2-pre: fact(0) +in wrapper2-post: fact(0) =3D 1 +in wrapper1-post: fact(1) =3D 1 +in wrapper2-post: fact(2) =3D 2 +in wrapper2-post: fact(6) =3D 972 +in wrapper1-post: fact(7) =3D 6804 +in wrapper2-pre: fact(2) +in wrapper1-pre: fact(1) +in wrapper2-pre: fact(0) +in wrapper2-post: fact(0) =3D 1 +in wrapper1-post: fact(1) =3D 1 +in wrapper2-post: fact(2) =3D 2 +fact1(7) =3D 6806 +allocated 51 Lards Added: trunk/cachegrind/tests/wrap5.vgtest =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/cachegrind/tests/wrap5.vgtest (rev 0) +++ trunk/cachegrind/tests/wrap5.vgtest 2006-01-22 01:08:40 UTC (rev 5579= ) @@ -0,0 +1,2 @@ +prog: wrap5 +cleanup: rm cachegrind.out.* |