• Home
  • History
  • Annotate
  • only in /external/ltrace/testsuite/
History log of /external/ltrace/testsuite/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
0b5457a9e59978bcd2eb5240f54838910365a93c 05-Feb-2014 Petr Machata <pmachata@apm-mustang-ev2-02.ml3.eng.bos.redhat.com> Set child stack alignment in trace-clone.c

- This is important on aarch64, which requires 16-byte aligned
stack pointer. This might be relevant on other arches as well,
I suspect we just happened to get the 16-byte boundary in some
cases.
trace.minor/trace-clone.c
63753e08aaec64973649fcf17368740bebeea21e 31-Jan-2014 Petr Machata <pmachata@apm-mustang-ev2-02.ml3.eng.bos.redhat.com> Force use of SYS_open on aarch64 as well

- That system call is not implemented on aarch64, but we don't
care, we are only calling it to see if the parameters get decoded
properly. So call using the "syscall" wrapper, and hard-code
SYS_open value on aarch64, where glibc doesn't define it.
trace.main/system_call_params.exp
81efcb04cd4e84ffd2c6ab851a2a10360956bd15 31-Jan-2014 Petr Machata <pmachata@apm-mustang-ev2-02.ml3.eng.bos.redhat.com> Rewrite system_calls.exp

- Port this to new style test case

- Be more clever about what syscalls were invoked from main,
as opposed to the multitude of calls that the dynamic linker
typically makes

- Allow some basic calls to come in XXXat variants (e.g. openat
instead of open), such is the case on aarch64.
trace.main/system_calls.c
trace.main/system_calls.exp
a94829bd7791d39326aba1c028cda4c869e093a7 05-Feb-2014 Petr Machata <pmachata@redhat.com> Improve HFA-related test cases

- Moved a bunch of preexisting HFA tests to a separate test case (and
converted them to new style in the process). Added another bunch of
HFA tests.
trace.main/parameters-hfa.exp
trace.main/parameters-lib.c
trace.main/parameters.c
trace.main/parameters.conf
trace.main/parameters.exp
dfefa9f057857735a073ea655f5cb34351032c8e 07-Jan-2014 Mark Wielaard <mjw@redhat.com> Add support for using elfutils as unwinder.

This adds support for using elfutils as unwinder with -w. Since elfutils
0.158 elfutils contains a simple unwinder interface that matches nicely
on the ltrace backtrace support.

The code reuses the libunwind infrastructure already in ltrace where
possible (by defining HAVE_UNWINDER which is 1 if either libunwind or
elfutils is used). It also reuses the ltrace proc_add_library callback
to keep track of the ELF files mapped for the unwinder.

The current implementation matches the output as if libunwind was used.
But elfutils can also provide some more information since it can lookup
the DWARF debuginfo. So if the source info of an address can be found
through elfutils the backtrace will also include this as an additional
output line per frame.
akefile.am
ib/ltrace.exp
8a730f3e5844b86386032e93f91aa3df814ad9c3 21-Nov-2013 Petr Machata <pmachata@redhat.com> Consider exec and exit events an end of outstanding calls

- This cleans up a lot of stuff. The actual substance is addition of
account_current_callstack in handle_event.c (which however uses
those cleaned-up interfaces).

- trace-exec.exp was extended to check that the exec syscall can be
seen in -c output. That's one of the symptoms of what this fixes.

- This hides dict_opt_c in summary.c. It also gets rid of the global
variable current_time_spent--instead, the information is passed via
a function argument in a struct timedelta (so that we never confuse
absolute time with relative). callstack_element.time_spent was renamed
to .enter_time, as that is what it has always been.
trace.minor/trace-exec.exp
416efe44ceaf4d6cc2a5475d34f1b084d166b8cc 13-Nov-2013 Petr Machata <pmachata@redhat.com> Add a test case for wide character functions
trace.minor/Makefile.am
trace.minor/wchar.exp
0c0afe35c59c5d1b28f3aeb8515f10b8da948036 06-Nov-2013 Petr Machata <pmachata@redhat.com> Support pre-8.5 TCL's by providing our own lreverse in ltrace.exp
ib/ltrace.exp
1118c60ad86f8c6a911ca11c1dd0f292453cc4bf 05-Nov-2013 Petr Machata <pmachata@redhat.com> Add trace-irelative.exp to Makefile.am
trace.minor/Makefile.am
fa844db00b61b9f61c9ae8c6f4165aa5fff3a5d7 05-Nov-2013 Petr Machata <pmachata@redhat.com> Full support of IFUNC tracing on PPC32
trace.minor/trace-irelative.exp
ce011e2111524f8cc5e246f2bcfa9eb20984d4bf 04-Nov-2013 Petr Machata <pmachata@redhat.com> The irelative test case should check for IFUNC in shared library as well
trace.minor/trace-irelative.exp
d8286ed3496bcd69cd4796f57a5b5c04859d2378 04-Nov-2013 Petr Machata <pmachata@redhat.com> Show "nil" also for void* values
trace.main/parameters2.exp
693cd2882c9592f9bfca2fc3c14d62eae00f7475 25-Oct-2013 Petr Machata <pmachata@redhat.com> Rewrite the IFUNC test case to avoid GCC attribute

- GCC doesn't support __attribute__ ((ifunc)) on all platforms
where IFUNC is supported.
trace.minor/trace-irelative.exp
5069ef8f498e5189de0789d79485f39b76c621d4 24-Oct-2013 Petr Machata <pmachata@redhat.com> Fix fetching of system call arguments on i386
trace.main/system_call_params.exp
trace.main/system_calls.exp
0c9e76c37619ad1aaa2c05696fdd309afe8deb13 16-Oct-2013 Petr Machata <pmachata@redhat.com> Add a test case for IRELATIVE and IFUNC support
trace.minor/trace-irelative.exp
82f748d1bc2b95d594327ad15f3a6908070dd5c3 23-Oct-2013 Petr Machata <pmachata@redhat.com> System calls are now part of dedicated symbol library

- This symbol library is still special in that symbols are created on
demand and never actually added. It just serves as a link to
protolibrary with system call prototypes, and has a name (SYS).

- Prototypes for system calls were moved to a dedicated prototype
library called syscalls.conf.

- Because it's undesirable to look up syscall prototypes in anything
but the dedicated syscall protolib, prototype.c/.h now understand
that some lookups shouldn't be done recursively (and so we never
pick the definition from -F file that just happens to have the same
name as a system call). The good thing is that now libraries can
actually use symbols named SYS_something without clashing with
system call prototypes.

- One test case needed to be updated, because we now display system
calls as something@SYS instead of SYS_something.
trace.main/Makefile.am
trace.main/system_call_params.exp
trace.main/system_calls.exp
cb943f1d54fb8d45879e9545f97f236f833bf7ea 26-Sep-2013 Peter Wu <lekensteyn@gmail.com> Add tests for %p format specifier crash and zero(EXPR) leaks

Notes for these regression tests:

- The %p test should run when ltrace is built with -fsanitize=address or
some other form of protection that makes the program abort when trying
to free() static memory.
- The zero(EXPR) test needs valgrind to test for the previous memleak
bug, but as it stands now, it can also test whether the zero
functionality works or not.

Signed-off-by: Peter Wu <lekensteyn@gmail.com>
trace.main/parameters2.exp
1ad42523638fd49c1200cbf81ba6a39f864c91cb 22-Mar-2013 Petr Machata <pmachata@redhat.com> Fix a problem in lookup of typedef X_* when X is an intrinsic type
trace.main/parameters2.exp
904ffaa0b8711b4841de68a1f3cd96c6eca1a5e4 19-Mar-2013 Petr Machata <pmachata@redhat.com> Add a test case for tracing dlopened libraries in attached processes
trace.minor/attach-process-dlopen.exp
3aac545b7947db4225a37408bc1c765d5e32ff7c 19-Mar-2013 Petr Machata <pmachata@redhat.com> ltrace.exp: Flags called -l* encode shared libraries to link against
ib/ltrace.exp
62fc7747d37cacfb21381961674c07ebab5f2fb9 05-Feb-2013 Petr Machata <pmachata@redhat.com> Implement Base Procedure Call Standard for ARM

arch_fetch_arg_next still doesn't support "hardfp" extensions, but much of
the test suite is now clean, with only 16 failures left.
trace.main/parameters.exp
f2d5f79591fdb1a22b4e7c8e4cbb8274dc7daa40 31-Jan-2013 Petr Machata <pmachata@redhat.com> Add ARM singlestepping test suite to Makefile.am
trace.torture/Makefile.am
19e74b5815987bb4260351bc1e5ef4a1ea08b1b4 17-Jan-2013 Petr Machata <pmachata@redhat.com> Initial support for software singlestepping on ARM

- This only knows about branch instructions, it doesn't handle long
branches.
- This also doesn't handle thumb mode at all.
trace.torture/arm-singlestep.exp
9e8460d115be96984fa104411982f77bef952ed3 06-Dec-2012 Petr Machata <pmachata@redhat.com> Add a test for per-library configuration files
trace.main/Makefile.am
trace.main/parameters3.exp
36a2b2565068bf4f8fa0a5edfb844a61afb50683 06-Dec-2012 Petr Machata <pmachata@redhat.com> Add ltraceDir, ltraceNamedSource

Also, WipeFiles now erases files in reverse order, so that files are
removed before the directory that contains them. This is to avoid
having to use file delete -force. Tcl is a fragile language, and
deleting $HOME is but a slip of a variable away.
ib/ltrace.exp
e8701b4cc4333dbc5e3c683468fa8fb077977ba6 06-Dec-2012 Petr Machata <pmachata@redhat.com> Move ltraceParamTest from parameters2.exp to ltrace.exp, name ltraceLibTest

Also, change the semantics: ltraceLibTest doesn't do matching anymore,
but is a wrapper around several ltraceSource, ltraceCompile and
ltraceRun. Matching is done by the callee. This allows us to choose
the exact matcher to use.
ib/ltrace.exp
trace.main/parameters2.exp
bb04f57417d132a2f4aeb738d7f47acbdbbbf457 24-Nov-2012 Petr Machata <pmachata@redhat.com> Add test for "addr" type
trace.main/parameters2.exp
0965420dfd1f4167609c4b3bbee5dc0277423897 05-Dec-2012 Petr Machata <pmachata@redhat.com> Don't mangle static symbol names internally

Instead, write the @soname bit separately. I'm not sure why this was done
like that in the first place. I may have cut'n'pasted this from RHEL
patches for dlopen support, where these sorts of hacks were necessary.
trace.main/parameters2.exp
ee3f964d9452b6445320d5e44c304f9e4afaf8b2 29-Nov-2012 Petr Machata <pmachata@redhat.com> Forgot to add parameters2.exp to Makefile.am
trace.main/Makefile.am
e5a8cef0bf0e96480d6ca0355bb64d3121a88858 29-Nov-2012 Petr Machata <pmachata@redhat.com> Don't use system-wide 'true', compile own binary instead

On biarch systems, true may come from the wrong arch, and ltrace may be
unable to trace it.
trace.main/parameters2.exp
f197727e6247be1ee08d2a667931aee20512ae18 29-Nov-2012 Petr Machata <pmachata@redhat.com> Allow formatting floats, doubles in hex

Include a test suite case.
Describe the extension in ltrace.conf.5.
Mention it in NEWS.

There's no similar agreed-upon convention for oct, and displaying which
bits are set in a floating number like what bitvect does is certainly not
helpful. Hence, remove the corresponding TODO item. Add a different
(unrelated) one instead.
trace.main/parameters2.exp
ec4ab256e5c7fe1596dd90a3c8e8d4b052ca1207 20-Nov-2012 Petr Machata <pmachata@redhat.com> Add lens "bitvec" for displaying objects as bit vectors
trace.main/parameters2.exp
3219c86c7fa6d5464fe4b14ce038002851d0d5cc 19-Nov-2012 Petr Machata <pmachata@redhat.com> Allow typedefs of lenses

This worked for keywords such as enum that are handled specially, because
those behave as types for backward compatibility. It was however not
possible to typedef e.g. hex.
trace.main/parameters2.exp
6248a0ac394b2aa3b2267eaa1220a90b609b6f86 19-Nov-2012 Petr Machata <pmachata@redhat.com> Guard number of expanded structures of the same type

The logic behind that is that if we limit array output, we should similarly
limit linked list output. Number of expansions of the same-typed structure
is a reasonable metric for that. Double recursive structures will expand
a bit too much, but on the other hand we want the stuff that is typed out
in the configure file to display fully, and not be considered for trimming.

Test suite included.
trace.main/parameters2.exp
307b90b158b79ba3aae61d5c6612b4769b10be5f 19-Nov-2012 Petr Machata <pmachata@redhat.com> Allow forward declarations of structs

Now ltrace can display singly-linked lists. Recursion detection was added
to format_pointer. It relies on the fact that ltrace is not multi-threaded
and doesn't need per-process or per-thread cache of already-displayed
values, because we display one value at a time anyway.

Several test cases added.
trace.main/parameters2.exp
26c0c9413c2558c3f95cb466b3734ea5ba57444d 19-Nov-2012 Petr Machata <pmachata@redhat.com> Show NULL pointers as "nil" in trace output

Fix a test case that asserted that NULL strings should be shown as "".
trace.main/parameters.exp
b17863f2dc7a0f2edbf6a2482028c829b91c2c09 18-Nov-2012 Petr Machata <pmachata@redhat.com> Guard against redefinition of typedef

Test case included
trace.main/parameters2.exp
1a399cde69dca38591be563e062f60380bbd41e4 18-Nov-2012 Petr Machata <pmachata@redhat.com> Parse correctly typedefs with common prefix

More exactly, if there is a typedef X and another XY, and a reference is
made to X, don't instead match XY. Test case included.
trace.main/parameters2.exp
da7f3c67d075ee47cfd092dcb73362b0cb1ce4d3 18-Nov-2012 Petr Machata <pmachata@redhat.com> Add temporary files created by LtraceTempFile to list of files to wipe
ib/ltrace.exp
2b5c2fb9fa0072ec51463331022bae176bb62695 07-Nov-2012 Petr Machata <pmachata@redhat.com> In trace-exec.exp, main should return int

This avoids a warning (which leads to failure) in a test suite on RHEL 5
Itanium.
trace.minor/trace-exec.exp
423cfb41e5534c7265cebbafdccf4e1f8bae2db1 07-Nov-2012 Petr Machata <pmachata@redhat.com> Emit a newline in ltraceSource

This avoids a warning (which leads to failure) in a test suite on RHEL 5
Itanium.
ib/ltrace.exp
50616305cac3edcf25940aa065e9c21af0f8107e 07-Nov-2012 Petr Machata <pmachata@redhat.com> Don't rely on mktemp when creating temporary file

on older systems, mktemp requires that the array of X's be at the very end
of the string, while ltrace temporary files need to have suffixes.
ib/ltrace.exp
0ceae2a763aee33e23808edc7bece9888c583411 01-Nov-2012 Petr Machata <pmachata@redhat.com> Test hiding structure elements, improve test for hiding function parameters
trace.main/parameters-lib.c
trace.main/parameters.c
trace.main/parameters.conf
trace.main/parameters.exp
1976637c53456501b1892474150f5e6af5c1cbbb 01-Nov-2012 Petr Machata <pmachata@redhat.com> Add missing files to testsuite Makefile.am's
trace.main/Makefile.am
trace.minor/Makefile.am
trace.torture/Makefile.am
dcb572c1b031f3d2eb2d19709117a5aa315c502b 30-Oct-2012 Petr Machata <pmachata@redhat.com> Turn on leak checking with --enable-valgrind

As of the previous commit, I'm getting leak-free valgrind runs of ltrace
testsuite on x86_64 as well as i386.
akefile.am
84c86d73716b1e785f2690918403d7094393e1f3 30-Oct-2012 Petr Machata <pmachata@redhat.com> For string types in printf.c, return a pointer to array, not array

Though ltrace currently translates the latter to the former, this is the
actual proper parameter type.

Also fix one prototype in test suite for the same reason.
trace.main/parameters.conf
201e33746e5f671bce3ddf732390010cf71d034b 27-Oct-2012 Petr Machata <pmachata@redhat.com> Show failed command in ltraceRun and ltrace_runtest
ib/ltrace.exp
45de1a24740e813ac10b981684a9b46814ddb38c 27-Oct-2012 Petr Machata <pmachata@redhat.com> Guard failures in ltraceRun and ltrace_runtest

This gives us reasonable error messages for valgrind citations.
ib/ltrace.exp
trace.main/hello-vfork.c
e9aa41afb05dd58908c389556c8bf9c984002a36 26-Oct-2012 Petr Machata <pmachata@redhat.com> Fix trace-exec test case
trace.minor/trace-exec.exp
be0db9f510bcb1cb520f683c70bc18e86af94c28 18-Oct-2012 Petr Machata <pmachata@redhat.com> Change filters.exp to check both plain and PIE tracing
trace.main/filters.exp
59d2fb2b7c4eb4dab5ad5f08b10cfdc4fa8f27cb 18-Oct-2012 Petr Machata <pmachata@redhat.com> Support building PIE binaries in testsuite
ib/ltrace.exp
8d84ecc9c977b6793dae791e307b24266e27ec99 18-Oct-2012 Petr Machata <pmachata@redhat.com> In testsuite, don't leave temporary objects behind
ib/ltrace.exp
9f4a41340383c105f7d57a176a1f3d511ab77e1d 06-Oct-2012 Petr Machata <pmachata@redhat.com> Rewrite four test cases to use the new vocabulary

- In main-internal in particular, we never actually tested intra-binary
call. Now we do.
trace.main/filt.c
trace.main/filt1.c
trace.main/filt2.c
trace.main/filters.exp
trace.main/main-internal-1.c
trace.main/main-internal.c
trace.main/main-internal.exp
trace.minor/attach-process.c
trace.minor/attach-process.exp
trace.minor/trace-exec.c
trace.minor/trace-exec.exp
trace.minor/trace-exec1.c
c298d6846f6d0841489210cb7bae8ab86e9c600c 06-Oct-2012 Petr Machata <pmachata@redhat.com> New support for writing test cases

This provides a more fitting vocabulary for writing test cases that we
typically deal with. This is designed to make writing test cases much
simpler, with as little duplication as possible. It is now easy to embed
literal program text into expect scripts themselves, instead of keeping
.c and .exp files in sync.

- ltraceSource creates a temporary file with contents given directly in
expect script.

- ltraceCompile compiles a binary (which can be a library) from given
source files.

- ltraceRun runs ltrace command with arguments given directly on ltraceRun
command line, and produces a temporary file with ltrace log.

- ltraceMatch and ltraceMatch1 support querying ltrace log files. Matching
is done in TCL instead of running grep|wc. Because of this, it should
now be unnecessary to put arrays of backslashes to properly escape
control characters. This also supports normal mathematical operators for
comparing numbers of matches to expectation. Previously it was impossible
to express that such and such pattern should never appear. Now this can
be tested trivially.

- ltraceDone cleans up temporary files that were introduced by above calls.
ib/ltrace.exp
8657ce611019ed180e5cca1d413ceddd680cfe67 06-Oct-2012 Petr Machata <pmachata@redhat.com> ltrace.exp: Drop unused proc ltrace_saveoutput
ib/ltrace.exp
0c4f66d02980f16989ab9a70e01066df78cb48f8 06-Oct-2012 Petr Machata <pmachata@redhat.com> Libraries shouldn't be added to command line if object is compiled

Command lines like gcc x.c -c y.so prompt gcc to emits warnings, and
DejaGNU then thinks there were failures.
ib/ltrace.exp
80cb95b3610d34fd80f95b74f40339b9b540b302 06-Oct-2012 Petr Machata <pmachata@redhat.com> ltrace.exp: Add licence blurb
ib/ltrace.exp
5aaf64ed7c4243f55944e2190a81123d568700e7 06-Oct-2012 Petr Machata <pmachata@redhat.com> ltrace.exp: Extract logic for compiling object files into a separate proc
ib/ltrace.exp
0709b4cb982607477d8cc508c85a9104c5d0c194 06-Oct-2012 Petr Machata <pmachata@redhat.com> Drop meaningless global declarations on top level of ltrace.exp
ib/ltrace.exp
7a1d8cd50bacdb33e2dbaf054f9a348a3f33e32e 06-Oct-2012 Petr Machata <pmachata@redhat.com> Support running test suite in valgrind
akefile.am
ib/ltrace.exp
bce43dc15fcd84068182c696a366f5ffb4b2e06d 03-Oct-2012 Petr Machata <pmachata@redhat.com> Invoke get_compiler_info before ltrace_compile_shlib in libdl-simple.exp

This test case fails when run by itself. When run in a batch with the rest
of the test suite, someone else calls get_compiler_info and things get
initialized properly.

A related change is not to reference compiler_info global variable before
we even test its existence.
ib/ltrace.exp
trace.minor/libdl-simple.exp
c13bd96c15af83fa5818862a1f785a2d49094bee 03-Oct-2012 Petr Machata <pmachata@redhat.com> Clean up test environment before compiling or running tests
ib/ltrace.exp
3a8a91ca57f66d664b3fbd19882e6d163c7ad496 04-Oct-2012 Edgar E. Iglesias <edgar@axis.com> testsuite: Add testcase for sprintf like functions

Signed-off-by: Edgar E. Iglesias <edgar@axis.com>
trace.main/parameters-lib.c
trace.main/parameters.c
trace.main/parameters.conf
trace.main/parameters.exp
83b3189516cab1e42854308f151b2ce5d2dd2364 13-Oct-2012 Petr Machata <pmachata@redhat.com> Fix handling of arg0 in parameter list
trace.main/parameters-lib.c
trace.main/parameters.c
trace.main/parameters.conf
trace.main/parameters.exp
85761852f44864ba3f92be2cfdd67af2e02f093e 28-Sep-2012 Petr Machata <pmachata@redhat.com> Add tests covering -l behavior
trace.main/filters.exp
51e74aca71ff7e8be91c074afd4f2264f46294e9 27-Sep-2012 Petr Machata <pmachata@redhat.com> Add parsing of -l option
trace.main/main-threaded.exp
trace.main/main-vfork.exp
trace.main/main.exp
trace.main/parameters-lib.c
trace.main/parameters.c
trace.main/parameters.conf
trace.main/parameters.exp
51d85d99f3ed74c01109b1040499c3a01f68361c 26-Sep-2012 Edgar E. Iglesias <edgar.iglesias@gmail.com> testsuite: Avoid compile warning

Running ./ltrace.main/parameters.exp ...
compile failed for ltrace test, ./ltrace.main/parameters.c: In function 'main':
./ltrace.main/parameters.c:196: warning: format '%ld' expects type 'long int', but argument 4 has type 'int'
Testcase compile failed, so all tests in this file will automatically fail.

Signed-off-by: Edgar E. Iglesias <edgar@axis.com>
trace.main/parameters.c
248db7bc5d3e095da23b64f9afb0643ca64977ef 08-Sep-2012 Petr Machata <pmachata@redhat.com> Add ia64-specific tests

These test passing and returning homogeneous floating-point aggregates.
trace.main/parameters-lib.c
trace.main/parameters.c
trace.main/parameters.conf
trace.main/parameters.exp
1ac91188e53f5b880bfb7d103a56b51a2f0ebb52 30-May-2012 Petr Machata <pmachata@redhat.com> Forgot to add dejagnu portions of the new test cases
trace.main/parameters.exp
a81af7c2f7691c1eeb801b7756b13899b79d7568 30-May-2012 Petr Machata <pmachata@redhat.com> Add test cases that check passing structures of various widths by value
trace.main/parameters-lib.c
trace.main/parameters.c
trace.main/parameters.conf
df3e3ce40c5dd3459bb365b684b78d8b1b94c1ec 29-May-2012 Petr Machata <pmachata@redhat.com> Add a test for passing of floating-equivalent structures

This is relevant on s390x, where these should be passed in a register.
trace.main/parameters-lib.c
trace.main/parameters.c
trace.main/parameters.conf
trace.main/parameters.exp
1b4d3bec9409b4c9a5cbc1be9faa31ea988c6ed3 18-May-2012 Petr Machata <pmachata@redhat.com> We need to fetch floating registers on pure i386 as well

Also, remove i386 from the fail spec of parameters.exp, as now it's
expected to pass.
trace.main/parameters.exp
c07a26a8d0f86bc4137eb7b7fea8bbf9021275f1 09-Jan-2012 Petr Machata <pmachata@redhat.com> Add enum lens, drop ARGTYPE_ENUM
trace.main/parameters-lib.c
trace.main/parameters.c
trace.main/parameters.conf
trace.main/parameters.exp
e3f4a984db115979e09414b7281da98399dd8949 09-Jan-2012 Petr Machata <pmachata@redhat.com> Drop ARGTYPE_STRING, reimplement as lens over array of chars
trace.main/parameters-lib.c
trace.main/parameters.c
trace.main/parameters.conf
trace.main/parameters.exp
ce034981e2880eecb8a196c78182dfb4ae67850f 09-Jan-2012 Petr Machata <pmachata@redhat.com> Replace ARGTYPE_OCTAL with lens, add also hex lens
trace.main/parameters-lib.c
trace.main/parameters.c
trace.main/parameters.conf
trace.main/parameters.exp
b77f778eda200e0dc1c481e2f7dc5ff322147bd7 07-Jan-2012 Petr Machata <pmachata@redhat.com> Add many test cases to the test suite
trace.main/parameters-lib.c
trace.main/parameters.c
trace.main/parameters.conf
trace.main/parameters.exp
94078ecce3a103c28457e6f90f1e5b0dacc61146 05-Jan-2012 Petr Machata <pmachata@redhat.com> Add expr.c, expr.h, plug in properly

- in callstack_pop, we don't free arch_ptr. That's because this doesn't
get copied over the clone. It's a mere coincidence that fork() doesn't
need to save register arguments, and this works.

- added copyright notices to files that this touches. This is based on
git blame. Only contributors of 10+ lines are added

- test suite adjusted to not include "void" type as "don't show this int".
Back ends in general need to know the exact type, so this never worked
anyway.
trace.main/parameters.conf
trace.main/parameters.exp
bf7909260bb6911abb4e42a650586938956dc904 01-Jun-2012 Petr Machata <pmachata@redhat.com> Demangle test should just skip testing if demangling wasn't compiled in

It happens to pass, which is not correct. It needs to be reported as
unsupported.
trace.minor/demangle.exp
97aafe40cc9f270b6126b36e1a65bb065d04e8e3 25-Apr-2012 Petr Machata <pmachata@redhat.com> Add a test for filtering expressions and DSO calls
trace.main/filt.c
trace.main/filt1.c
trace.main/filt2.c
trace.main/filters.exp
1bcd05943ebff28c1537d61d584c7f874d963d27 17-Apr-2012 Petr Machata <pmachata@redhat.com> Call func_work indirectly in ltrace.main/parameters testcase

That because otherwise, on PPC64, func_call gets a pointer to the address
of func_work entry point. I guess we could work around that by reading
.rela.dyn and rewriting GOT, but that's not the point of this test case.
trace.main/parameters.c
d17477a7c76d0994a00d21898dd16a4de81dfc1d 16-Apr-2012 Petr Machata <pmachata@redhat.com> Change libdl-simple.exp test to use ltrace_verify_output, update to pass

The update is that we are not matching "test_libdl(", but
"test_libdl@liblibdl-simple.so".
trace.minor/libdl-simple.exp
a266acb9c3bbde884a32268f164de62d03aa04d0 12-Apr-2012 Petr Machata <pmachata@redhat.com> Add code for stepping over atomic instruction sequence on PPC
trace.torture/ppc-lwarx.c
trace.torture/ppc-lwarx.exp
1429874dee5758cc99c0dae73bd3f928109e53d7 12-Apr-2012 Petr Machata <pmachata@redhat.com> Fix previous commit, which broke the common case

- in this commit I drop a bit of MIPS support. First, I don't think MIPS
is supported right now. The multi-threading merge was an invasive change
and most arches other than x86 are in fact currently broken.

Second, deciding that we shouldn't push a slot just based on address
equality is too strong. This would also reject actual recursion, which
is a common case (for -x anyway, for -e less so).
trace.main/branch_func.c
trace.main/branch_func.exp
31b2f9f7296e52aff489138c78be2f8cf9140bbc 12-Apr-2012 Petr Machata <pmachata@redhat.com> Limited support for returns from tail call functions

- we use a heuristic: several consecutive calls with the same return
address, but a different symbol. We can't use just the former case,
because that way we would also kill honest recursive (library) calls.
It's only this particular case that we know that a tail call took place.
trace.main/branch_func.c
trace.main/branch_func.exp
9d29b3e7d2d7f7ccb1891dc56b03e91a0319cf42 09-Nov-2011 Petr Machata <pmachata@redhat.com> Only delay continuing the process if we are actually mid-_stopping_

- The check fired also on vfork handling, and this hung the process
- Add a test case exercising this code, courtesy of Michal Nowak and
Denys Vlasenko
trace.main/hello-vfork.c
trace.main/hello-vfork.exp
bf6b270bf2b6268153efc88cc5808ffd9bcb596e 27-Sep-2011 Petr Machata <pmachata@redhat.com> Add a test case for thread/vfork scenario
trace.torture/vfork-thread.c
trace.torture/vfork-thread.exp
134a108693f8155d2167675ad8127ff6def1425e 27-Sep-2011 Petr Machata <pmachata@redhat.com> Trace vfork return in parent as well as in child
trace.main/main-vfork.exp
09e9ca1dd52c32b509952c8b0ec7079b420e5638 27-Sep-2011 Petr Machata <pmachata@redhat.com> Add a test case for vfork
trace.main/main-vfork.c
trace.main/main-vfork.exp
cbe29c6c0ad01839a81272c4715ea73d17e89611 27-Sep-2011 Petr Machata <pmachata@redhat.com> Basic support for tracing vfork

- allow even individual tasks to have their event handlers. These are
called in precedence to the thread group event handlers.
- distinguish CLONE and VFORK events
- add methods for dynamic changes of leader
- add new process status ps_sleeping
trace.minor/trace-clone.c
8cda4344bf3d23bba06e45ed065cc0a6792a1034 15-Sep-2011 Petr Machata <pmachata@redhat.com> Fix threading test case
trace.main/main-threaded.exp
1e8f6fe9680c994b9c86753c3345a4579f726fc4 09-Jul-2011 Petr Machata <pmachata@redhat.com> Add a test case
trace.main/main-threaded.c
trace.main/main-threaded.exp
43d1de94c304f61f20d542a031bee907cd98c2e6 11-Aug-2011 Petr Machata <pmachata@redhat.com> Fix compilation
trace.minor/trace-clone.c
dbd8254e0214a805f23f2d887770e37645959c9a 17-Dec-2010 Zachary T Welch <zwelch@codesourcery.com> Add calls to setup_xfail in parameters.exp

Marks the expected failures on ARM and x86.

Signed-off-by: Zachary T Welch <zwelch@codesourcery.com>
trace.main/parameters.exp
68621dbd097284a7a60318815399503c24518f12 17-Dec-2010 Zachary T Welch <zwelch@codesourcery.com> Make test suite work with non-standard installations

Augment LD_LIBRARY_PATH with alternate locations of libelf and libunwind
in ltrace_runtest. Also adds support for passing extra arguments, so
all tests can be rewritten to use that API calls. This patch makes the
test suite work (without any hacking) on systems that do not have those
libraries installed in standard locations.

Signed-off-by: Zachary T Welch <zwelch@codesourcery.com>
akefile.am
ib/ltrace.exp
trace.minor/trace-clone.exp
trace.minor/trace-exec.exp
trace.minor/trace-fork.exp
dd1352379a16ae982041f6be4fa62e3bf0dab7fb 07-Dec-2010 Zachary T Welch <zwelch@codesourcery.com> Include libdl-simple test in distribution tarball

Add libdl-simple source files and test script to EXTRA_DIST and
add binary to CLEANFILES.

Signed-off-by: Zachary T Welch <zwelch@codesourcery.com>
trace.minor/Makefile.am
9c75697b5192065e01653bb2da3fba5139458370 07-Dec-2010 Zachary T Welch <zwelch@codesourcery.com> Fix spacing in test failure report

A space should follow a comma, not precede one.

Signed-off-by: Zachary T Welch <zwelch@codesourcery.com>
ib/ltrace.exp
03037c8279c3e67a9a8334cdf1c061cc61d52462 19-Nov-2010 Petr Machata <pmachata@redhat.com> Allow ltrace_verify_output calls to use their own grep flavor

- sometimes we'd like extended regexps, but sometimes it's a hindrance
(like for example at the parameters.exp, where all the parens around
funcalls would have to be escaped).
ib/ltrace.exp
421cfb52e0153a8898f79331645832d93c2dde92 19-Nov-2010 Petr Machata <pmachata@redhat.com> On s390x, names of mmap, fstat and stat system calls are different
trace.main/system_calls.exp
679e4fe6bd3f433e7990e19617a3157ce733a9c7 09-Nov-2010 Joe Damato <ice799@gmail.com> Add a simple libdl test
trace.minor/libdl-simple-lib.c
trace.minor/libdl-simple.c
trace.minor/libdl-simple.exp
280f829ca87ff6b6c3a242a97fcef01d4488d2c8 03-Nov-2010 Petr Machata <pmachata@redhat.com> Add test for nested library calls
trace.main/parameters-lib.c
trace.main/parameters.c
trace.main/parameters.conf
trace.main/parameters.exp
1607793a00298f9d5a857dac73de2dd6a6510725 03-Nov-2010 Petr Machata <pmachata@redhat.com> Better checking of float and double arguments and return values
trace.main/parameters-lib.c
trace.main/parameters.c
trace.main/parameters.conf
trace.main/parameters.exp
b2d628bb1f9dd190a3dc2cf2131b37662f530a79 05-Nov-2010 Zachary T Welch <zwelch@codesourcery.com> Add test suite files to EXTRA_DIST variables

Permits 'make distcheck' (and users) to run all of the tests.

Signed-off-by: Zachary T Welch <zwelch@codesourcery.com>
akefile.am
trace.main/Makefile.am
trace.minor/Makefile.am
trace.torture/Makefile.am
4627fc493db8459e6ef0597a4155a06b7d120d20 05-Nov-2010 Zachary T Welch <zwelch@codesourcery.com> Make test suite work for out-of-tree builds.

Use 'objdir' instead of 'srcdir' for building executables and saving
the .ltrace output files.

Signed-off-by: Zachary T Welch <zwelch@codesourcery.com>
trace.main/main-internal.exp
trace.main/main.exp
trace.main/parameters.exp
trace.main/signals.exp
trace.main/system_calls.exp
trace.minor/attach-process.exp
trace.minor/count-record.exp
trace.minor/demangle.exp
trace.minor/print-instruction-pointer.exp
trace.minor/time-record-T.exp
trace.minor/time-record-tt.exp
trace.minor/time-record-ttt.exp
trace.minor/trace-clone.exp
trace.minor/trace-exec.exp
trace.minor/trace-fork.exp
trace.torture/signals.exp
3a9d1e753b6228347fc04c1f0a7a7fbb7147ec9a 05-Nov-2010 Zachary T Welch <zwelch@codesourcery.com> Convert testsuite to use autotools

Punts all of the dejagnu magic into automake.

Signed-off-by: Zachary T Welch <zwelch@codesourcery.com>
akefile
akefile.am
trace.main/Makefile
trace.main/Makefile.am
trace.minor/Makefile
trace.minor/Makefile.am
trace.torture/Makefile
trace.torture/Makefile.am
593ee323b97ed61f68c209205c2b365897696942 31-Oct-2010 Petr Machata <pmachata@redhat.com> Some cleanup from Fedora:
- In man page, don't claim that we only support 32-bit binaries
- Make the fork test suite more accurate
- note about the puts/printf: modern GCCs compile printf ("string\n") into
puts ("string"). Always use puts to make this at least deterministic.
- add more tests to make sure that the fork indeed was properly followed
trace.minor/trace-fork.c
trace.minor/trace-fork.exp
e0437fdca4afea870182e10fd119ab3af06df04f 08-Jan-2010 Arnaud Patard <apatard@mandriva.com> count-record.exp: don't use ltrace_saveoutput

Using ltrace_saveoutput results in a empty .ltrace file and breaks test
(side note: why ? ... )

Signed-off-by: Arnaud Patard <apatard@mandriva.com>
trace.minor/count-record.exp
105adb6627b19be7208fe55c226cbcfbbeb2f00c 08-Jan-2010 Arnaud Patard <apatard@mandriva.com> Don't use signal number. Use constant

signal 10 is SIGBUS on mips not SIGUSR1

Signed-off-by: Arnaud Patard <apatard@mandriva.com>
trace.torture/signals.c
f872e349d7b7c707f4a5c957a4994f6f33babf83 08-Jan-2010 Arnaud Patard <apatard@mandriva.com> demangle-lib.cpp: fix build

Build failure due to missing include cstdlib for malloc/free

Signed-off-by: Arnaud Patard <apatard@mandriva.com>
trace.minor/demangle-lib.cpp
f670eea50e959eeb9da53d70cad8d43c19494ef0 25-Jul-2009 Juan Cespedes <cespedes@coco.thehackers.org> Finally got rid of GNU's Autoconf stuff
akefile
akefile.in
trace.main/Makefile
trace.main/Makefile.in
trace.minor/Makefile
trace.minor/Makefile.in
trace.torture/Makefile
trace.torture/Makefile.in
63184be8c577f5799e44db2a4e312a8240ad7751 10-Dec-2008 Juan Cespedes <cespedes@debian.org> Patches from Anderson Lizardo and Riku Voipio to reach Debian version 0.5-3.1

* Add generic support for arm targets
* Save funtion arguments on arm
* Add thumb instruction support
* Add basic arm/eabi support
* fix exec() testcase cleanup
* fix memory corruption in clone() test
* fix tracing child with "-p" option
trace.minor/Makefile.in
trace.minor/trace-clone.c
aee093126654f722523b47848a0c5449e39cf4bb 31-Aug-2007 Juan Cespedes <cespedes@debian.org> Some random fixes

* General: Small fixes (indentation, typos, clean-up of code)
* ltrace.c: Close output file on exit
* ltrace.c: use getenf("HOME") instead of getpwuid(geteuid())->pw_dir
* read_config_file.c, display_args.c: remove "ignore" argtype;
that's what "void" is for
* packaging/debian/: misc fixes, sync with version 0.5-1
* etc/ltrace.conf: added more system calls
* testsuite/ltrace.minor/trace-clone.c: sleep(1) to avoid earlier
termination of process
* sysdeps/linux-gnu/trace.c: trace_pid(): reverted Petr's patch
to wait for child to stop, as it stopped following clone()
* process_event.c: Disable breakpoints before doing fork() (again!),
to make children work as expected
trace.main/parameters.c
trace.main/parameters.conf
trace.main/parameters.exp
trace.minor/attach-process.exp
trace.minor/count-record.exp
trace.minor/demangle.exp
trace.minor/print-instruction-pointer.exp
trace.minor/time-record-T.exp
trace.minor/time-record-tt.exp
trace.minor/time-record-ttt.exp
trace.minor/trace-clone.c
trace.minor/trace-clone.exp
trace.minor/trace-exec.exp
trace.minor/trace-fork.exp
55ed83b24df9c6d671091a8c75caab33ffecd40e 17-May-2007 Petr Machata <pmachata@redhat.com> Fixes from Supriya Kannery <supriyak@in.ibm.com>

* wait_for_something.c, process_event.c: Tracing across exec.
* sysdeps/linux-gnu/trace.c, ltrace.h: New interface was_exec.
* testsuite/ltrace.minor/trace-exec.c,
testsuite/ltrace.minor/trace-exec.exp,
testsuite/ltrace.minor/trace-exec1.c: Testcase for same.
trace.minor/trace-exec.c
trace.minor/trace-exec.exp
trace.minor/trace-exec1.c
ef46b3e70e54059a7a8bf32af7361bb262ccc8d1 09-May-2007 Petr Machata <pmachata@redhat.com> Interpret SIGILL, SIGEMT and SIGSEGV as valid breakpoint signals
trace.torture/ia64-sigill.exp
trace.torture/ia64-sigill.s
e4b3263fb2b32eb5ee0f693fc223ed8c363fbd69 07-Aug-2006 Steve Fink <sphink@gmail.com> Add pointers to structs

* Allow parameters to be pointers to structs, which themselves
can contain (nearly) any other type, including other structs
or pointers to structs.
trace.main/parameters-lib.c
trace.main/parameters.c
trace.main/parameters.conf
trace.main/parameters.exp
1150bc4b812f0150e832607b8724b023d6d7d575 07-Aug-2006 Steve Fink <sphink@gmail.com> array arguments
trace.main/parameters-lib.c
trace.main/parameters.c
trace.main/parameters.conf
trace.main/parameters.exp
e22411dd33d2d55fd5c6510390954f13fd502d3a 07-Aug-2006 Steve Fink <sphink@gmail.com> add ability to typedef
trace.main/parameters-lib.c
trace.main/parameters.c
trace.main/parameters.conf
trace.main/parameters.exp
6fa27c330f9e07c5be553614b9c6e2f08461780f 07-Aug-2006 Steve Fink <sphink@gmail.com> short, ushort and float types
trace.main/parameters-lib.c
trace.main/parameters.c
trace.main/parameters.conf
trace.main/parameters.exp
6a3e24dc1709530e59dd6ae3e91ced1c221fe1b9 07-Aug-2006 Steve Fink <sphink@gmail.com> implement enumerated parameters
trace.main/parameters-lib.c
trace.main/parameters.c
trace.main/parameters.conf
trace.main/parameters.exp
b2c254573fbf30189293be6b7f2ef307c499704c 07-Aug-2006 Steve Fink <sphink@gmail.com> update testsuite for new parameters
trace.main/Makefile.in
trace.main/parameters-lib.c
trace.main/parameters.c
trace.main/parameters.conf
trace.main/parameters.exp
3fc0189c9b07744f7c1224e1472a922495eb0139 07-Aug-2006 Steve Fink <sphink@gmail.com> testsuite/lib/ltrace.exp: better quoting and error detection
ib/ltrace.exp
trace.minor/count-record.exp
c93af498204f36700a95d2b67574f7234bbed98e 16-Mar-2006 Paul Gilliam <pgilliam@us.ibm.com> use __clone2() for ia64 clone test
trace.minor/trace-clone.c
98d884bfd78ea7a37f46515c6e9e3635a95d8cbc 14-Mar-2006 Paul Gilliam <pgilliam@us.ibm.com> Add a dejagnu-based testsuite.
akefile.in
EADME
onfig/unix.exp
ib/compiler.c
ib/compiler.cc
ib/ltrace.exp
trace.main/Makefile.in
trace.main/main-internal-1.c
trace.main/main-internal.c
trace.main/main-internal.exp
trace.main/main-lib.c
trace.main/main.c
trace.main/main.exp
trace.main/signals.c
trace.main/signals.exp
trace.main/system_calls.c
trace.main/system_calls.exp
trace.minor/Makefile.in
trace.minor/attach-process.c
trace.minor/attach-process.exp
trace.minor/count-record.c
trace.minor/count-record.exp
trace.minor/demangle-lib.cpp
trace.minor/demangle.cpp
trace.minor/demangle.exp
trace.minor/demangle.h
trace.minor/print-instruction-pointer.c
trace.minor/print-instruction-pointer.exp
trace.minor/time-record-T.exp
trace.minor/time-record-tt.exp
trace.minor/time-record-ttt.exp
trace.minor/time-record.c
trace.minor/trace-clone.c
trace.minor/trace-clone.exp
trace.minor/trace-fork.c
trace.minor/trace-fork.exp
trace.torture/Makefile.in
trace.torture/signals.c
trace.torture/signals.exp
un-my-tests.sh