PPC-specific magic to compute the PLT slots.
- Fix a problem with tracing stripped binary after execl on architectures
that need PLT reinitalisation breakpoint.
- Support tracing of 31-bit binaries with 64-bit ltrace
- Fix handling of the case where forked child is reported before parent's
fork event
- Patch from Supriya Kannery implements fetching 5th and further function
arguments on s390
51 lines
2.1 KiB
Diff
51 lines
2.1 KiB
Diff
diff -ur ltrace-0.5/summary.c ltrace-0.5-dasho/summary.c
|
|
--- ltrace-0.5/summary.c 2006-04-24 12:14:01.000000000 -0400
|
|
+++ ltrace-0.5-dasho/summary.c 2008-05-19 15:22:13.000000000 -0400
|
|
@@ -68,16 +68,17 @@
|
|
|
|
qsort(entries, num_entries, sizeof(*entries), compar);
|
|
|
|
- printf("%% time seconds usecs/call calls function\n");
|
|
- printf
|
|
- ("------ ----------- ----------- --------- --------------------\n");
|
|
+ fprintf(output,
|
|
+ "%% time seconds usecs/call calls function\n");
|
|
+ fprintf(output,
|
|
+ "------ ----------- ----------- --------- --------------------\n");
|
|
for (i = 0; i < num_entries; i++) {
|
|
unsigned long long int c;
|
|
unsigned long long int p;
|
|
c = 1000000 * (int)entries[i].tv.tv_sec +
|
|
(int)entries[i].tv.tv_usec;
|
|
p = 100000 * c / tot_usecs + 5;
|
|
- printf("%3lu.%02lu %4d.%06d %11lu %9d %s\n",
|
|
+ fprintf(output, "%3lu.%02lu %4d.%06d %11lu %9d %s\n",
|
|
(unsigned long int)(p / 1000),
|
|
(unsigned long int)((p / 10) % 100),
|
|
(int)entries[i].tv.tv_sec, (int)entries[i].tv.tv_usec,
|
|
@@ -85,8 +86,8 @@
|
|
entries[i].count,
|
|
opt_C ? my_demangle(entries[i].name) : entries[i].name);
|
|
}
|
|
- printf
|
|
- ("------ ----------- ----------- --------- --------------------\n");
|
|
- printf("100.00 %4lu.%06lu %9d total\n", tot_usecs / 1000000,
|
|
- tot_usecs % 1000000, tot_count);
|
|
+ fprintf(output,
|
|
+ "------ ----------- ----------- --------- --------------------\n");
|
|
+ fprintf(output, "100.00 %4lu.%06lu %9d total\n",
|
|
+ tot_usecs / 1000000, tot_usecs % 1000000, tot_count);
|
|
}
|
|
diff -urp ltrace-0.5/testsuite/ltrace.minor/count-record.exp ltrace-0.5-pm/testsuite/ltrace.minor/count-record.exp
|
|
--- ltrace-0.5/testsuite/ltrace.minor/count-record.exp 2006-03-14 00:12:01.000000000 +0100
|
|
+++ ltrace-0.5-pm/testsuite/ltrace.minor/count-record.exp 2009-02-20 16:48:28.000000000 +0100
|
|
@@ -27,8 +27,6 @@ if [regexp {ELF from incompatible archit
|
|
}
|
|
|
|
|
|
-ltrace_saveoutput $exec_output $srcdir/$subdir/$binfile.ltrace
|
|
-
|
|
#
|
|
# This is a sample output and Verify the forth and fifth column.
|
|
#
|