1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-12-27 05:23:43 +01:00
Commit graph

430 commits

Author SHA1 Message Date
hp.com!davidm
07e9f4df89 Include "config.h" if we have it.
Include <errno.h>.
Include <ia64intrin.h> if we have it.
(get_bsp): New function.
(doit): Use get_bsp() instead of __builtin_ia64_bsp().
(main): Replace %m with %s/strerror(errno).

(Logical change 1.277)
2004-10-15 13:53:29 +00:00
hp.com!davidm
e4d5a22812 Regenerate.
(Logical change 1.276)
2004-10-15 13:48:38 +00:00
hp.com!davidm
beca885a4b (Logical change 1.276) 2004-10-15 13:48:38 +00:00
hp.com!davidm
935d735557 Initial revision 2004-10-15 13:48:38 +00:00
hp.com!davidm
9d47ce5331 (f): Move it to ident.c so the optimizer can't get rid of it.
(Logical change 1.276)
2004-10-15 13:48:38 +00:00
hp.com!davidm
b0048ee762 (do_backtrace): Keep track of initial IP so we can issue better error messages.
(main): Update comment for -t.

(Logical change 1.276)
2004-10-15 13:48:38 +00:00
hp.com!davidm
b4f1459444 (EXTRA_DIST): Mention run-ptrace-misc.
(check_SCRIPTS_cdep): Mention run-ptrace-misc.
(noinst_PROGRAMS_cdep): Mention test-ptrace-misc.
(Gtest_bt_SOURCES): New macro.
(Ltest_bt_SOURCES): Likewise.
(test_ptrace_misc_SOURCES)L: Likewise.

(Logical change 1.276)
2004-10-15 13:48:38 +00:00
homeip.net!davidm
b62e5e37b3 Regenerate.
(Logical change 1.271)
2004-10-05 16:28:06 +00:00
hp.com!davidm
7bd9b32b1d Regenerate.
(Logical change 1.270)
2004-09-15 11:37:04 +00:00
hp.com!davidm
23d9a14c4d (verbose): New variable.
(num_errors): Likewise.
(do_backtrace): Only print info if verbose is set.
(foo): Likewise.
(sighandler): Likewise.
(main): Likewise.
(bar): New function which is attempting to trigger a bug reported by
	Anthony Brewer which is caused by GAS apparently generating bad
	offsets for the psprel directive.
(f): New function.

}(Logical change 1.270)
2004-09-15 11:37:04 +00:00
hp.com!davidm
186cbb2957 (verbose): New variable.
(num_errors): Likewise.
(do_backtrace): Only print info if verbose is set.
(foo): Likewise.
(sighandler): Likewise.
(main): Likewise.
(bar): New function which is attempting to trigger a bug reported by
	Anthony Brewer which is caused by GAS apparently generating bad
	offsets for the psprel directive.
(f): New function.

2004/09/15 04:24:29-07:00 hp.com!davidm
Rename: tests/bt.c -> tests/Gtest-bt.c

(Logical change 1.270)
2004-09-15 11:37:04 +00:00
hp.com!davidm
18cd500bf7 (Logical change 1.270) 2004-09-15 11:37:04 +00:00
hp.com!davidm
373a106072 Initial revision 2004-09-15 11:37:04 +00:00
hp.com!davidm
dfa582a2df (noinst_PROGRAMS_cdep): Move bt to...
(check_PROGRAMS_cdep): ...here as Gtest-bt/Ltest-bt.

(Logical change 1.270)
2004-09-15 11:37:04 +00:00
mostang.com!davidm
34be77c7b2 (test_generic): Fix "unused variable" warning.
(Logical change 1.266)
2004-09-09 13:06:01 +00:00
mostang.com!davidm
112fcdd172 Regenerate.
(Logical change 1.261)
2004-09-08 17:36:28 +00:00
hp.com!davidm
f7671b5cf7 Regenerate.
(Logical change 1.259)
2004-08-31 13:59:10 +00:00
hp.com!davidm
197c9d517b Initial revision 2004-08-31 13:59:10 +00:00
hp.com!davidm
f789a1e1d1 Fix up a little so it's silent by default.
(Logical change 1.259)
2004-08-31 13:59:10 +00:00
hp.com!davidm
8f2272c097 (noinst_PROGRAMS_arch): Move ia64-test-sig to...
(check_PROGRAMS_arch): ...here.  Mention ia64-test-setjmp.
(ia64_test_setjmp_LDADD): Mention libunwind-setjmp.la.

(Logical change 1.259)
2004-08-31 13:59:10 +00:00
hp.com!davidm
e29611e7d3 (Logical change 1.259) 2004-08-31 13:59:10 +00:00
homeip.net!davidm
efa755a556 Add checks for __libunwind_* aliases.
(Logical change 1.255)
2004-08-20 11:35:37 +00:00
homeip.net!davidm
18acb92530 (flush_cache): Provide dummy-implementation for x86-64.
(Logical change 1.253)
2004-08-20 11:23:15 +00:00
homeip.net!davidm
982b64232d Regenerate.
(Logical change 1.252)
2004-08-19 14:03:54 +00:00
homeip.net!davidm
3eb739d290 (check_PROGRAMS_cdep): Move test-init-remote from check_PROGRAMS_common to here
so it doesn't get built in the REMOTE_ONLY-case.

(Logical change 1.252)
2004-08-19 14:03:54 +00:00
homeip.net!davidm
95dea64712 (do_backtrace): Delete unused variable "pi".
(Logical change 1.250)
2004-08-19 13:40:08 +00:00
bea.com!thallgre
779632ee82 Regenerate.
(Logical change 1.245)
2004-08-18 15:16:46 +00:00
bea.com!thallgre
0f818455ce Initial revision 2004-08-18 15:16:46 +00:00
bea.com!thallgre
511d542828 (check_local_unw_abi): Check for _U${plat}_strerror().
(check_generic_unw_abi): Likewise.

(Logical change 1.245)
2004-08-18 15:16:46 +00:00
bea.com!thallgre
42a90f14d5 (check_PROGRAMS_common): Mention test-strerror.
(Logical change 1.245)
2004-08-18 15:16:46 +00:00
bea.com!thallgre
48cc8c5712 (Logical change 1.245) 2004-08-18 15:16:46 +00:00
hp.com!davidm
0588a0bcc3 Regenerate.
(Logical change 1.243)
2004-08-18 10:50:12 +00:00
hp.com!davidm
b71d3fd5d2 Initial revision 2004-08-18 10:50:12 +00:00
hp.com!davidm
d5933d6e74 (check_PROGRAMS_common): Mention test-init-remote.
(Logical change 1.243)
2004-08-18 10:50:12 +00:00
hp.com!davidm
f9a2d5dfd8 (Logical change 1.243) 2004-08-18 10:50:12 +00:00
homeip.net!davidm
34fa122ac2 Regenerate.
(Logical change 1.241)
2004-08-17 15:34:28 +00:00
hp.com!davidm
1623029497 Regenerate.
(Logical change 1.239)
2004-07-15 17:39:59 +00:00
hp.com!davidm
7886a0d946 (create_func): Change %Zu to %zu.
(Logical change 1.236)
2004-05-12 20:54:56 +00:00
hp.com!davidm
72a03113c8 ia64: For remote-only-case, don't expect to find _Uia64_get_elf_image9) or
_Uia64_get_kernel_table().

(Logical change 1.234)
2004-05-07 00:30:27 +00:00
hp.com!davidm
30649af75a Pass arguments along to check-namespace.sh.
(Logical change 1.233)
2004-05-06 22:02:00 +00:00
hp.com!davidm
d7f8bd62d4 Add x86-specific checks.
(Logical change 1.233)
2004-05-06 22:02:00 +00:00
hp.com!davidm
683c9b4117 (main): Remove unused variable "i".
(Logical change 1.232)
2004-05-06 21:11:29 +00:00
hp.com!davidm
9fb355e096 (depth): New global variable.
(raise_exception): Make non-static, unwind "depth - 1" steps to get to
	top-most a() frame.
(__builtin_ia64_bsp): Also define for Intel-compiler.
(a): Restructure so it works in the face of global optimization and also
	remove GCC dependencies.
(main): Initialize depth based on argv[1].

(Logical change 1.232)
2004-05-06 21:11:29 +00:00
hp.com!davidm
d5c1bfe772 Regenerate.
(Logical change 1.231)
2004-05-06 20:26:29 +00:00
hp.com!davidm
de2a42042e (Logical change 1.231) 2004-05-06 20:26:29 +00:00
hp.com!davidm
9427f8eae4 Initial revision 2004-05-06 20:26:29 +00:00
hp.com!davidm
86bef150e4 (check_PROGRAMS_cdep): Mention Gia64-test-readonly and Lia64-test-readonly.
(Lia64_test_readonly_SOURCES): New macro.
(Gia64_test_readonly_SOURCES): Likewise.

(Logical change 1.231)
2004-05-06 20:26:29 +00:00
mostang.com!davidm
7b989938b7 Regenerate.
(Logical change 1.227)
2004-05-05 05:03:20 +00:00
mostang.com!davidm
74b22fed4c (check_generic_unw_abi): Check for _U${plat}_get_kernel_table() on
linux only.

(Logical change 1.227)
2004-05-05 05:03:20 +00:00
mostang.com!davidm
0c8baa7a79 (EXTRA_DIST): Also mention run-check-namespace.
(Logical change 1.227)
2004-05-05 05:03:20 +00:00
mostang.com!davidm
2d2129a5bc (sighandler): Adjust for <asm/rse.h> -> <ia64/rse.h> changes.
(Logical change 1.226)
2004-05-05 01:59:36 +00:00
mostang.com!davidm
542e026ae4 Regenerate.
(Logical change 1.225)
2004-05-05 01:58:44 +00:00
mostang.com!davidm
3640bb40a2 (Logical change 1.225) 2004-05-05 01:58:44 +00:00
mostang.com!davidm
3db9cf3812 Initial revision 2004-05-05 01:58:44 +00:00
mostang.com!davidm
5a468e30cc (EXTRA_DIST): Mention check-namespace.sh.in.
(check_SCRIPTS_common): Mention run-check-namespace.

(Logical change 1.225)
2004-05-05 01:58:44 +00:00
mostang.com!davidm
bd193e0509 Regenerate.
(Logical change 1.223)
2004-05-04 22:24:50 +00:00
mostang.com!davidm
4de259b49f (EXTRA_DIST): Mention run-ptrade-mapper.
(test_static_link_LDFLAGS): Replace -all-static with -static.
	The former doesn't work on HP-UX because libc doesn't appear
	to be availabale in archive format (only libc.so is available).
(forker_LDFLAGS): Likewise.

(Logical change 1.223)
2004-05-04 22:24:50 +00:00
mostang.com!davidm
823c634376 Regenerate.
(Logical change 1.222)
2004-05-04 22:19:18 +00:00
mostang.com!davidm
ba424722db (main): If HAVE_TTRACE is defined, fail unconditionally.
(Logical change 1.222)
2004-05-04 22:19:18 +00:00
mostang.com!davidm
6fbd639ea8 Include "ia64/rse.h" instead of <asm/rse.h>. The latter is
Linux-specific.
Include <sys/uc_access.h> if available.
(NELEMS): Delete (already defined in internal.h).
(all_funcs): Remove left-over #if 1 directives.
(sighandler): Add HP-UX support.
(enable_sighandler): Replace SA_NOMASK with SA_NODEFER.  The former
	is not available on HP-UX.
(disable_sighandler): Likewise.

(Logical change 1.221)
2004-05-04 22:16:57 +00:00
mostang.com!davidm
43ccdff0d9 Delete: tests/verify.c
}(Logical change 1.219)
2004-05-04 20:13:07 +00:00
mostang.com!davidm
907e49826a (test_local): Use unw_context_t instead of ucontext_t.
(Logical change 1.219)
2004-05-04 20:13:07 +00:00
mostang.com!davidm
4ff8fff57c (test_generic): Use unw_context_t instead of ucontext_t.
(Logical change 1.219)
2004-05-04 20:13:07 +00:00
hp.com!davidm
3ff119aa1d (put_unwind_info): New function.
(resume): Likewise.
(nop): Remove.
(main): Don't cast function pointer to different prototypes.  That's apparently
	not allowed.  icc v8.0 complains about it and GCC 3.5 will actually
	generate crashing code when this is done.  Talk about terminated with
	extreme prejudice!

(Logical change 1.213)
2004-04-23 00:12:51 +00:00
hp.com!davidm
d0de283084 (check_static_to_scratch): Remove extraneous printf-argument found by icc v8.0.
(Logical change 1.213)
2004-04-23 00:12:51 +00:00
hp.com!davidm
c9a01bf094 (MAX_FUNC_SIZE): New macro.
(main): Use MAX_FUNC_SIZE instead of open-coding 256 bytes.

(Logical change 1.210)
2004-04-21 23:46:17 +00:00
mostang.com!davidm
f20b7f838a Regenerate.
(Logical change 1.209)
2004-04-21 07:24:35 +00:00
mostang.com!davidm
3e718ea004 (Logical change 1.209) 2004-04-21 07:24:35 +00:00
mostang.com!davidm
35c9f15ab7 Initial revision 2004-04-21 07:24:35 +00:00
mostang.com!davidm
a4bd80c748 (print_names): New global.
(do_backtrace): Call unw_get_proc_name() only if print_names is TRUE.
(main): Support command-line option -c to turn on caching of
	unwind-info and -n to turn off the printing (and lookup)
	of symbol names.
	Stop execution if child dies with a signal.

(Logical change 1.209)
2004-04-21 07:24:35 +00:00
mostang.com!davidm
6cb58ac940 (check_SCRIPTS_cdep): Mention run-ptrace-mapper.
(noinst_PROGRAMS_cdep): Mention mapper.

(Logical change 1.209)
2004-04-21 07:24:35 +00:00
hp.com!davidm
a9217ee2df Auto merged
2004/04/20 09:53:04-07:00 hp.com!davidm
Regenerate.

(Logical change 1.205)
2004-04-20 16:53:44 +00:00
hp.com!davidm
deb3c645a4 Auto merged
2004/04/20 09:53:04-07:00 hp.com!davidm
(forker_LDFLAGS): Mention -all-static.

(Logical change 1.205)
2004-04-20 16:53:44 +00:00
mostang.com!davidm
b9c2ed48de Regenerate.
(Logical change 1.204)
2004-04-01 08:11:21 +00:00
mostang.com!davidm
4471c1e8c3 (Logical change 1.204) 2004-04-01 08:11:21 +00:00
mostang.com!davidm
4cda328838 Initial revision 2004-04-01 08:11:21 +00:00
mostang.com!davidm
5de8024488 (check_PROGRAMS_cdep): Mention test-async-sig.
(test_async_sig_LDADD): New macro.

(Logical change 1.204)
2004-04-01 08:11:21 +00:00
mostang.com!davidm
471e4e5fa6 Minor whitespace fixes.
(Logical change 1.202)
2004-04-01 06:27:06 +00:00
mostang.com!davidm
50c2be0ca3 Undo some temporary testing hacks.
(Logical change 1.198)
2004-03-31 07:29:27 +00:00
mostang.com!davidm
201f7d6671 Regenerate.
(Logical change 1.197)
2004-03-31 01:53:04 +00:00
mostang.com!davidm
e3eae74698 (gettime): Go back to gettimeofday(). clock_gettime() requires
librt which requires libpthread, which slows everything
	down.

(Logical change 1.197)
2004-03-31 01:53:04 +00:00
mostang.com!davidm
69052ef3ea (Lperf_simple_LDADD): Delete.
(Gperf_simple_LDADD): Likewise.

(Logical change 1.197)
2004-03-31 01:53:04 +00:00
hp.com!davidm
3be31f5dcb Include <unistd.h> and <sys/resource.h>.
(KB): New macro.
(big): Lower the size to 64*MB.  Should be enough for another year... ;-)
(gettime): Fix typo and lower the assumed cache-line size from 64
	to 8 bytes just to be safe across platforms.
(measure_init): Lower N from 1000 to 100.
	(cursor): Add some padding between each unw_cursor_t to avoid
		benefitting from cache-line sharing.
	(uc): Likewise.
	Warm up the TLB before measuring the cold-cache cases.
(main): Unlimit the max. stack-size just in case.
	Write to "big" to ensure it's backed by real memory
	(not just by the zero page).

(Logical change 1.194)
2004-03-30 22:57:06 +00:00
mostang.com!davidm
fc7b49b983 (measure_init): Improve it so that we don't measure noise, such
as context-switches.

(Logical change 1.191)
2004-03-28 00:24:33 +00:00
mostang.com!davidm
96c6250626 Include <memory.h>.
(MB): New macro.
(big): New array.
(measure_unwind): Don't try to measure "init" step---it's too fast.
(f1): Likewise.
(doit): Likewise.
(sum): New function.
(measure_init): Measure unw_getcontext() and unw_local_init() here.
(main): Call measure_init(), adjust labels for doit() calls.

(Logical change 1.190)
2004-03-27 09:25:58 +00:00
hp.com!davidm
e8be590f3d Regenerate.
(Logical change 1.187)
2004-03-20 09:57:46 +00:00
mostang.com!davidm
c7fdc72fd6 Make number of iterations controllable via the second command-line
argument.
(gettime): Use clock_gettime() instead of gettimeofday() to get
	(potentially) better resolution.

(Logical change 1.186)
2004-03-20 09:54:28 +00:00
mostang.com!davidm
8e8fe50029 (Lperf_simple_LDADD): Mention -lrt.
(Gperf_simple_LDADD): Likewise.

(Logical change 1.186)
2004-03-20 09:54:28 +00:00
hp.com!davidm
5071803e5d (save_static_to_mem2): New function.
(save_static_to_mem3): Likewise.
(save_static_to_mem4): Likewise.
(save_static_to_mem5): Likewise.
(save_static_to_scratch): Save f4 to f6 to improve test coverage.

(Logical change 1.185)
2004-03-20 06:27:55 +00:00
hp.com!davidm
61d42ccf66 (check_static_to_memN): New function.
(check_static_to_mem2): Likewise.
(check_static_to_mem3): Likewise.
(check_static_to_mem4): Likewise.
(check_static_to_mem5): Likewise.

(Logical change 1.185)
2004-03-20 06:27:55 +00:00
mostang.com!davidm
18d33f37d5 (check_rotate_regs): Return adjust "vals"; add a printf() in verbose
mode.

(Logical change 1.184)
2004-03-19 08:18:44 +00:00
mostang.com!davidm
96d2898321 (CALL_NEXT_PTR): Like CALL_NEXT(), except that the two argument
registers are passed via macro args.
(CALL_NEXT): Define in terms of CALL_NEXT_PTR().
(rotate_regs): Fix it so it doesn't overwrite any local registers
	once they are rotated.  Note: it's OK to write the output
	registers, since those are outside of the rotating partition.

(Logical change 1.184)
2004-03-19 08:18:44 +00:00
hp.com!davidm
77a27f0baf Update with rotation-test.
(Logical change 1.183)
2004-03-19 02:38:39 +00:00
hp.com!davidm
94b71a1cd8 (LOAD_VAL): Use p15 instead of p6 so we don't step on save_static_to_scratch().
(flushrs): New function.
(rotate_regs): Likewise.


(Logical change 1.183)
2004-03-19 02:38:39 +00:00
mostang.com!davidm
23dd2c4c4a Update.
(Logical change 1.181)
2004-02-27 08:54:25 +00:00
hp.com!davidm
ad73ee3a77 Add include of <errno.h>, <string.h>, and <asm/rse.h>.
(save_static_to_scratch): New declaration.
(sighandler): New function.
(check_static_to_scratch): Likewise.
(enable_sighandler): Likewise.
(disable_sighandler): Likewise.
(check-static_to_stacked): Fix missing newline in error message.
(start_checks): Call disable_sighandler().
	Fix missing newline error messages.
(run_check): Call enable_sighandler() right before starting the checks.
(main): Fix missing newline in message.

(Logical change 1.179)
2004-02-27 00:59:41 +00:00
hp.com!davidm
1f3439fc5d (save_static_to_scratch): New routine.
(Logical change 1.179)
2004-02-27 00:59:41 +00:00
mostang.com!davidm
a2a1325c9f Fix copyright year and update file-comment.
(save_static_to_fr): Rename from save_static_to_fpreg().
(check_static_to_fr): Rename from check_static_to_fpreg().
(save_static_to_br): Declare.
(check_static_to_br): New function.
(save_static_to_mem): Declare.
(check_static_to_mem): New function.
(all_funcs): Mention new save/checks.

(Logical change 1.175)
2004-02-19 08:05:27 +00:00
mostang.com!davidm
a5ed5ae3b7 (LOAD_VAL): New macro.
(save_static_to_stacked): Use LOAD_VAL.
(save_static_to_fr): Rename from save_static_to_fpreg().
(save_static_to_br): New function.
(save_static_to_mem): Likewise.

(Logical change 1.175)
2004-02-19 08:05:27 +00:00
hp.com!davidm
330d2b5129 (all_funcs): Mention static_to_fpreg test & check.
(check_static_to_fpreg): New function.
(run_check): In verbose mode, print the run number.

(Logical change 1.171)
2004-02-19 01:32:27 +00:00
hp.com!davidm
c5b3064c05 (CALL_NEXT): New macro.
(save_static_to_fpreg): New function.

(Logical change 1.171)
2004-02-19 01:32:27 +00:00
hp.com!davidm
907bac3434 Regenerate.
(Logical change 1.170)
2004-02-19 01:30:13 +00:00
mostang.com!davidm
05a9101485 (Logical change 1.168) 2004-02-14 07:53:31 +00:00
mostang.com!davidm
a49786f031 Initial revision 2004-02-14 07:53:31 +00:00
mostang.com!davidm
66482c4494 Add copyright message.
(Logical change 1.168)
2004-02-14 07:53:31 +00:00
mostang.com!davidm
899323c996 (check_PROGRAMS_arch): Mention Gia64-test-nat and Lia64-test-nat.
(Lia64_test_nat_SOURCES): New macro.
(Gia64_test_nat_SOURCES): Likewise.

(Logical change 1.168)
2004-02-14 07:53:31 +00:00
hp.com!davidm
7cc016a29a (test_generic): Clean it up so it compiles cleanly and works for
REMOTE_ONLY case.

(Logical change 1.158)
2004-01-22 08:36:15 +00:00
mostang.com!davidm
bc0f731593 Regenerate.
(Logical change 1.157)
2004-01-21 06:36:35 +00:00
mostang.com!davidm
be177c8b06 Initial revision 2004-01-21 06:36:35 +00:00
mostang.com!davidm
e1da718101 Add copyright notice.
(Logical change 1.157)
2004-01-21 06:36:35 +00:00
mostang.com!davidm
0378f95492 (check_PROGRAMS_common): Mention test-static-link.
(perf): New target.
(test_static_link_SOURCES): New macro.
(test_static_link_LDFLAGS): Likewise.

(Logical change 1.157)
2004-01-21 06:36:35 +00:00
mostang.com!davidm
a54ee88009 (Logical change 1.157) 2004-01-21 06:36:35 +00:00
mostang.com!davidm
40a1558927 Include <libunwind-ptrace.h> instead of <libunwind.h>.
(Logical change 1.156)
2004-01-21 01:05:07 +00:00
mostang.com!davidm
95589da62c Regenerate.
(Logical change 1.152)
2004-01-14 06:21:52 +00:00
hp.com!davidm
32f19d0e09 (test_ptrace_LDADD): New macro.
(Logical change 1.151)
2004-01-03 10:50:24 +00:00
hp.com!davidm
d799003645 Regenerate.
(Logical change 1.137)
2003-12-05 00:45:03 +00:00
hp.com!davidm
dde43e2bee Initial revision 2003-12-05 00:45:03 +00:00
hp.com!davidm
d154b86e84 (check_PROGRAMS_cdep): Mention test-mem.
(Logical change 1.137)
2003-12-05 00:45:03 +00:00
hp.com!davidm
5e111c69df (Logical change 1.137) 2003-12-05 00:45:03 +00:00
hp.com!davidm
9441e6cb89 (STACK_SIZE): Make it 128KB on x86. SIGSTKSZ is far too small.
(Logical change 1.131)
2003-11-27 07:17:47 +00:00
hp.com!davidm
dcf293aa30 Cast printf() argument to avoid compiler-warning.
(Logical change 1.130)
2003-11-27 06:52:54 +00:00
hp.com!davidm
722933b6bc Cast printf() argument to avoid compiler warning.
(Logical change 1.130)
2003-11-27 06:52:54 +00:00
hp.com!davidm
06e572340e (a): Don't use inline-asm for Intel-compiler.
(Logical change 1.130)
2003-11-27 06:52:54 +00:00
hp.com!davidm
5e446b24d7 (ITERATIONS): New macro.
(maxlevel): New global variable.
(measure_unwind): Return init/step times via arg pointers.
(f1): Pass through init/step pointers.
(doit): New function.
(main): Use doit() instead of open code.

(Logical change 1.130)
2003-11-27 06:52:54 +00:00
hp.com!davidm
89d2adc59a Drop include of ia64intrin.h.
(Logical change 1.123)
2003-11-24 21:37:22 +00:00
hp.com!davidm
94f198b288 (handler): Adjust printf format to avoid compiler warning.
(Logical change 1.123)
2003-11-24 21:37:22 +00:00
hp.com!davidm
2c9be974dc Regenerate.
(Logical change 1.115)
2003-11-22 06:08:20 +00:00
mostang.com!davidm
e83a184218 Regenerate.
(Logical change 1.114)
2003-11-20 01:10:03 +00:00
mostang.com!davidm
7a346fbf8c Measure with caching disabled, global caching, and thread-local
caching.

(Logical change 1.114)
2003-11-20 01:10:03 +00:00
mostang.com!davidm
716484f000 (Logical change 1.114) 2003-11-20 01:10:03 +00:00
mostang.com!davidm
634e645f67 Initial revision 2003-11-20 01:10:03 +00:00
mostang.com!davidm
00f05d607b (check_PROGRAMS_cdep): Mention Gtest-concurrent and Ltest-concurrent.
(Ltest_concurrent_LDADD): New macro.
(Gtest_concurrent_LDADD): Ditto.

(Logical change 1.114)
2003-11-20 01:10:03 +00:00
hp.com!davidm
587bba5c1f Print normal output only if "verbose" mode is requested.
(Logical change 1.104)
2003-09-25 05:29:14 +00:00
hp.com!davidm
d7d831e9bb Fix x86 b
(Logical change 1.104)
2003-09-25 05:29:14 +00:00
hp.com!davidm
29f2f89a8f (measure_unwind): Return 0.
(Logical change 1.104)
2003-09-25 05:29:14 +00:00
hp.com!davidm
a237717fd7 (check_PROGRAMS_cdep): Move Gtest-init, Ltest-init, and
test-flush-cache to here from check_PROGRAMS_common.
	They cannot be compiled/used for REMOTE_ONLY configurations.

(Logical change 1.104)
2003-09-25 05:29:14 +00:00
hp.com!davidm
1c5c60b8ad Add some more debug statements and fix some typos.
(Logical change 1.103)
2003-09-25 05:08:18 +00:00
hp.com!davidm
048d4239ae Collect 20 samples per run.
(Logical change 1.102)
2003-09-24 21:56:42 +00:00
hp.com!davidm
1be40c4ff6 Regenerate.
(Logical change 1.100)
2003-09-24 20:05:17 +00:00
mostang.com!davidm
dce915e1f6 Update.
(Logical change 1.99)
2003-09-24 05:03:10 +00:00
mostang.com!davidm
12876ef781 (Logical change 1.98) 2003-09-24 05:02:14 +00:00
mostang.com!davidm
ee803e7acc Initial revision 2003-09-24 05:02:14 +00:00
mostang.com!davidm
e1bdc44e0f (noinst_PROGRAMS_cdep): Add Gperf-simple and Lperf-simple.
(Logical change 1.98)
2003-09-24 05:02:14 +00:00
mostang.com!davidm
2eec126201 Add copyright message.
(Logical change 1.97)
2003-09-19 06:56:39 +00:00
mostang.com!davidm
ef593732e7 (Logical change 1.96) 2003-09-19 06:56:12 +00:00
mostang.com!davidm
9c8195cb41 Initial revision 2003-09-19 06:56:12 +00:00
mostang.com!davidm
29358553a9 (check_PROGRAMS_common): Mention test-flush-cache.
(Logical change 1.96)
2003-09-19 06:56:12 +00:00
mostang.com!davidm
dcd786be80 R
(Logical change 1.95)
2003-09-18 06:09:22 +00:00
mostang.com!davidm
9339de49da (Logical change 1.95) 2003-09-18 06:09:22 +00:00
mostang.com!davidm
b36317df37 Initial revision 2003-09-18 06:09:22 +00:00
mostang.com!davidm
6f01170a26 (check_PROGRAMS_common): Mention test-proc-info.
(Logical change 1.95)
2003-09-18 06:09:22 +00:00
mostang.com!davidm
8b7c7e322a (do_backtrace): Also pring "gp".
(foo): Add some newlines for better readability.
(sighandler): Always declare as per Single UNIX Spec.
	On HP-UX, use __uc_get_ip() to read the interruption IP.
(main): Always use sigaction() to install a signal handler, so we can
	turn on the SA_SIGINFO flag.

(Logical change 1.87)
2003-04-24 20:45:07 +00:00
hp.com!davidm
6c3716a92a (flush_cache): Implement x86-version as a no-op.
(Logical change 1.81)
2003-04-21 23:14:14 +00:00
hp.com!davidm
ade160f6a1 (STACK_SIZE): New macro. On x86, use 2*SIGSTKSZ, because the default-size
of 8KB is just too small to do anything reasonable.
(main): Use STACK_SIZE instead of SIGSTKSZ.

(Logical change 1.81)
2003-04-21 23:14:14 +00:00
hp.com!davidm
e6ddf4c3e0 (main): Fix command-line parsing to allow for more than one argument.
(Logical change 1.71)
2003-03-29 07:32:50 +00:00
mostang.com!davidm
4f17bce117 Regenerate.
(Logical change 1.70)
2003-03-28 07:43:22 +00:00
mostang.com!davidm
a4ab1098ea Add copyright header.
(Test_Class): New dummy class so we can define a constructor.
(backtrace): New function.

2003/03/27 16:03:18-08:00 mostang.com!davidm
Rename: tests/test-init.cxx -> tests/Gtest-init.cxx

(Logical change 1.70)
2003-03-28 07:43:22 +00:00
mostang.com!davidm
b5e1ca5a53 Initial revision 2003-03-28 07:43:22 +00:00
mostang.com!davidm
294a1e55cc Add copyright header.
(Test_Class): New dummy class so we can define a constructor.
(backtrace): New function.

}(Logical change 1.70)
2003-03-28 07:43:22 +00:00
mostang.com!davidm
5adfead33c (test_sigsetjmp): Declare "i" as a volatile variable so it gets preserved across
sigsetjmp().

(Logical change 1.70)
2003-03-28 07:43:22 +00:00
mostang.com!davidm
6bf5cdd335 (main): Set di.end_ip based on the region's insn_count (old value for di.end_ip was
too small when using ECC).

(Logical change 1.70)
2003-03-28 07:43:22 +00:00
mostang.com!davidm
5907edf946 (main): Portability fix: cast return value from create_func() to proper function-type.
(Logical change 1.70)
2003-03-28 07:43:22 +00:00
mostang.com!davidm
9fe5e68f40 (check_PROGRAMS_common): Mention Gtest-init and Ltest-init.
(noinst_PROGRAMS_cdep): Remove test-init.
(Gtest_init_SOURCES): New macro.
(Ltest_init_SOURCES): Ditto.

(Logical change 1.70)
2003-03-28 07:43:22 +00:00
mostang.com!davidm
757746aefb (a): When compiling with GCC on ia64, use "asm" statement to get the address of the
label.  gcc-3.x otherwise notices that the label isn't used for control-flow
	and feels free to move it around (usually to the beginning of the basic-block),
	with very bad consequences.

(Logical change 1.70)
2003-03-28 07:43:22 +00:00
mostang.com!davidm
453ec65cf0 (Logical change 1.70) 2003-03-28 07:43:22 +00:00
mostang.com!davidm
5b1f22a309 Regenerate.
(Logical change 1.69)
2003-03-27 04:34:23 +00:00
mostang.com!davidm
16192f7eac Separate bundle template directive from instruction with a semicolon. The Intel
assembler wants this.

(Logical change 1.68)
2003-03-27 04:29:07 +00:00
mostang.com!davidm
f168752fcf (Logical change 1.68) 2003-03-27 04:29:07 +00:00
mostang.com!davidm
58df2a4b8f Initial revision 2003-03-27 04:29:07 +00:00
mostang.com!davidm
b0d98c76e4 If we have it, include <ia64intrin.h>.
(flush_cache): Moved to flush-cache.S.

(Logical change 1.68)
2003-03-27 04:29:07 +00:00
mostang.com!davidm
43d0e03dc6 If we have it, include "config.h".
If we have it, include <ia64intrin.h>
(handler): Add support for ECC.

(Logical change 1.68)
2003-03-27 04:29:07 +00:00
mostang.com!davidm
0231ae5a6f (ia64_test_dyn1_SOURCES): Mention flush-cache.S.
(Gtest_dyn1_SOURCES): Ditto.
(Ltest_dyn1_SOURCES): Ditto.

(Logical change 1.68)
2003-03-27 04:29:07 +00:00
mostang.com!davidm
0e2f4866f2 (flush_cache): Move to flush-cache.S.
(Logical change 1.68)
2003-03-27 04:29:07 +00:00
mostang.com!davidm
feaf317bf2 (do_unwind_tests): Declare as global. Intel assembler insists on this.
Avoid GNU assembler local labels.

(Logical change 1.68)
2003-03-27 04:29:07 +00:00
mostang.com!davidm
797322b3b4 (a): If not compiling with GCC, explain that there is no hope of exercising this
test.

(Logical change 1.68)
2003-03-27 04:29:07 +00:00
mostang.com!davidm
00cfbc61fe Include "config.h" if we have it.
Declare "backtrace()" manually if we don't have execinfo.h.
Declare "sighandler_t" manually if the system doesn't do it for us.
On ia64, print sc->sc_ip only if we're on Linux.

(Logical change 1.63)
2003-03-19 19:25:18 +00:00
mostang.com!davidm
7a7d6113d4 Regenerate.
(Logical change 1.59)
2003-03-06 06:14:36 +00:00
mostang.com!davidm
2853523b39 (unwind_and_resume): Rename UNW_REG_EH_ARG0 to UNW_REG_EH+0 and UNW_REG_EH_ARG1 to
UNW_REG_EH+1.

(Logical change 1.59)
2003-03-06 06:14:36 +00:00
mostang.com!davidm
3532dd4a4c (main): Add some explicit casts to avoid "unsigned/signed comparison" warnings.
(Logical change 1.59)
2003-03-06 06:14:36 +00:00
mostang.com!davidm
623c4cb79a (EXTRA_DIST): New macro. Mention run-ia64-test-dyn1.
(Lia64_test_stack_SOURCES): Mention ia64-test-stack.h.
(Gia64_test_stack_SOURCES): Ditto.
(Lia64_test_rbs_SOURCES): Mention ia64-test-rbs.h.
(Gia64_test_rbs_SOURCES): Ditto.

(Logical change 1.59)
2003-03-06 06:14:36 +00:00
mostang.com!davidm
9d61294fde Include <assert.h>.
(main): Clean up region->op_count handling: op_count specifies the length of
	the array, not the number of valid op-entries.

(Logical change 1.57)
2003-02-27 17:33:20 +00:00
mostang.com!davidm
64b4ac37da Use SIGUSR1/SIGUSR2 to start/stop backtrace() verification for trace_mode == TRIGGER.
(Logical change 1.56)
2003-02-27 09:58:57 +00:00
mostang.com!davidm
26f95915e4 Regenerate.
(Logical change 1.56)
2003-02-27 09:58:57 +00:00
mostang.com!davidm
e31015f67f (Logical change 1.56) 2003-02-27 09:58:57 +00:00
mostang.com!davidm
1de6745d5b Initial revision 2003-02-27 09:58:57 +00:00
mostang.com!davidm
4577631094 Don't be verbose by default.
(main): Send SIGUSR1 before dynamic testing starts, SIGUSR2 afterwards (makes it
	easy for test-ptrace to catch when verification should begin).
	Add test case for func_vframe().

(Logical change 1.56)
2003-02-27 09:58:57 +00:00
mostang.com!davidm
0d7396a027 (func_add3): Various small fixes.
(func_vframe): New function.

(Logical change 1.56)
2003-02-27 09:58:57 +00:00
mostang.com!davidm
405a7d8adf (check_SCRIPTS_cdep): New macro
(check_PROGRAMS_cdep): Ditto
(check_SCRIPTS_arch): Ditto.
(check_PROGRAMS_arch): Ditto.
(check_SCRIPTS): Ditto.
(check_PROGRAMS): Ditto.
(TESTS): Define in terms of check_PROGRAMS and check_SCRIPTS.

(Logical change 1.56)
2003-02-27 09:58:57 +00:00
hp.com!davidm
ea8a74ba29 Rewrite it.
(Logical change 1.55)
2003-02-26 08:33:57 +00:00
hp.com!davidm
818d0241f2 Initial revision 2003-02-26 08:33:57 +00:00
hp.com!davidm
b97fa14ca5 Include <asm/ptrace_offsets.h> if host is IA-64.
(trace_mode): New variable.
(main): Support options -i (instruction-by-instruction backtracing), -s
	(syscall-level backtracing), -t (triggered instruction-level backtracing).

(Logical change 1.55)
2003-02-26 08:33:57 +00:00
hp.com!davidm
9f48ae3751 (TESTS_arch): Add ia64-test-dyn1.
(ia64_test_dyn1_SOURCES): New macro.

(Logical change 1.55)
2003-02-26 08:33:57 +00:00
hp.com!davidm
601494e771 (Logical change 1.55) 2003-02-26 08:33:57 +00:00
mostang.com!davidm
3434090e32 (Logical change 1.54) 2003-02-22 08:19:43 +00:00
mostang.com!davidm
5d9d17a5e8 Initial revision 2003-02-22 08:19:43 +00:00
hp.com!davidm
1a6bf76301 Rename: tests/test-dyn1.c -> tests/Gtest-dyn1.c
}(Logical change 1.53)
2003-02-22 03:08:22 +00:00
hp.com!davidm
a1aed8c295 Rename: tests/test-dyn1.c -> tests/Gtest-dyn1.c
(Logical change 1.53)
2003-02-22 03:08:22 +00:00
hp.com!davidm
ad94265cff Rename: tests/ia64-test-stack.c -> tests/Gia64-test-stack.c
}(Logical change 1.53)
2003-02-22 03:08:22 +00:00
hp.com!davidm
9c83634f04 Rename: tests/ia64-test-stack.c -> tests/Gia64-test-stack.c
(Logical change 1.53)
2003-02-22 03:08:22 +00:00
hp.com!davidm
7849826bf9 Regenerate.
(Logical change 1.53)
2003-02-22 03:08:22 +00:00