* runtime tests
@ 2008-05-29 6:17 Stan Cox
2008-05-29 9:12 ` [patch] compile failed when runtime set to relative path Zhaolei
2008-05-29 17:02 ` runtime tests Frank Ch. Eigler
0 siblings, 2 replies; 3+ messages in thread
From: Stan Cox @ 2008-05-29 6:17 UTC (permalink / raw)
To: systemtap
[-- Attachment #1: Type: text/plain, Size: 274 bytes --]
Here is a list of which stp_ routines are called by
runtime/{probes,tests}/*/*.c, in order to help determine if the
testsuite/systemtap.*/*.stp tests are sufficient coverage. It appears
from a cursory glance that everything is covered by the
testsuite/systemtap.* tests.
[-- Attachment #2: runtime-tests.txt --]
[-- Type: text/plain, Size: 4922 bytes --]
probes/agg/count1.c:
_stp_counter_add
_stp_print
_stp_printf
_stp_print_flush
_stp_unregister_kprobes
probes/agg/count2.c:
_stp_counter_add
_stp_printf
_stp_print_flush
_stp_unregister_jprobes
probes/agg/stat1.c:
_stp_counter_add
_stp_printf
_stp_print_flush
_stp_stat_add
_stp_stat_print
_stp_unregister_jprobes
probes/bench/bench.c: Replaced by runtime/bench2 ?
_stp_unregister_jprobes
_stp_unregister_kprobes
probes/bench/bench_io1.c:
_stp_print_cstr
_stp_printf
_stp_print_flush
_stp_unregister_kprobes
probes/bench/bench_io2.c:
_stp_print_cstr
_stp_printf
_stp_print_flush
_stp_unregister_kprobes
probes/bench/bench_io3.c:
_stp_printf
_stp_print_flush
_stp_unregister_kprobes
probes/bench/bench_io4.c:
_stp_printf
_stp_print_flush
_stp_unregister_kprobes
probes/bench/bench_multi.c:
_stp_unregister_kprobes
probes/bench/bench_ret.c:
_stp_unregister_kprobes
_stp_unregister_kretprobes
probes/os_timer/os_timer.c:
_stp_map_add_sii
_stp_map_del
_stp_map_print The map_print function is going away
_stp_print
_stp_printf
_stp_print_flush
_stp_stat_add
_stp_stat_print
probes/scf/scf.c:
_stp_map_add_si
_stp_map_del
_stp_map_print
_stp_stack_sprint
_stp_unregister_kprobes
probes/shellsnoop/shellsnoop.c:
_stp_copy_argv_from_user
_stp_map_clear
_stp_map_del
_stp_map_set_ii
_stp_map_set_is
_stp_print
_stp_printf
_stp_print_flush
_stp_string_from_user
_stp_unregister_jprobes
_stp_copy_argv_from_user
probes/tasklet/stp_tasklet.c:
_stp_printf
_stp_print_flush
_stp_unregister_jprobes
probes/test4/test4.c:
_stp_map_add_si
_stp_map_add_sx
_stp_map_del
_stp_map_print
_stp_printf
_stp_print_flush
_stp_unregister_jprobes
probes/where_func/kprobe_where_funct.c:
_stp_map_add_ii
_stp_map_del
_stp_map_print
_stp_unregister_kprobes
tests/agg/count.c:
_stp_counter_add
_stp_counter_free
tests/agg/stats.c:
_stp_printf
_stp_print_flush
_stp_stat_add
_stp_stat_del
_stp_stat_print
_stp_stat_print_cpu
tests/maps/ii.c:
_stp_map_clear
_stp_map_del
_stp_map_print
_stp_map_set_ii
tests/maps/iiiiii.c:
_stp_get_int64
_stp_key_get_int64
_stp_map_del
_stp_map_print
_stp_map_set_iiiiii
tests/maps/iiss.c:
_stp_map_add_iiss
_stp_map_del
_stp_map_print
_stp_map_set_iiss
tests/maps/is.c:
_stp_map_del
_stp_map_print
_stp_map_set_is
tests/maps/issii.c:
_stp_get_int64
_stp_key_get_int64
_stp_key_get_str
_stp_map_del
_stp_map_print
_stp_map_set_issii
tests/maps/isx.c:
_stp_map_add_ix
_stp_map_del
_stp_map_print
tests/maps/map_format.c:
_stp_map_add_ssx
_stp_map_print
_stp_map_set_iiss
_stp_map_set_ssi
_stp_printf
_stp_print_flush
tests/maps/setadd.c:
_stp_map_del
_stp_map_print
tests/maps/si.c:
_stp_map_clear
_stp_map_del
_stp_map_print
_stp_map_set_si
tests/maps/size.c:
_stp_map_clear
_stp_map_del
_stp_map_set_ii
tests/maps/sort2.c:
_stp_map_add_iiss
_stp_map_del
_stp_map_print
_stp_map_printn
_stp_map_set_iiss
_stp_map_set_ssi
_stp_map_sort
_stp_map_sortn
_stp_printf
tests/maps/sort.c:
_stp_map_add_iiss
_stp_map_del
_stp_map_print
_stp_map_printn
_stp_map_set_iiss
_stp_map_set_ssi
_stp_map_sort
_stp_map_sortn
_stp_printf
tests/maps/sort_stat.c:
_stp_map_add_ssx
_stp_map_del
_stp_map_print
_stp_map_sort
_stp_printf
tests/maps/ssssss.c:
_stp_get_str
_stp_key_get_str
_stp_map_del
_stp_map_print
_stp_map_set_ssssss
tests/pmaps/ii2.c:
_stp_map_add_ii
_stp_map_del
_stp_map_print
_stp_pmap_add_ii
_stp_pmap_del
_stp_pmap_print
tests/pmaps/ii3.c:
_stp_pmap_add_ii
_stp_pmap_del
_stp_pmap_print
_stp_pmap_set_ii
tests/pmaps/ii.c:
_stp_pmap_add_ii
_stp_pmap_del
_stp_pmap_print
_stp_pmap_printn_cpu
tests/pmaps/is.c:
_stp_pmap_add_is
_stp_pmap_del
_stp_pmap_print
_stp_pmap_printn_cpu
tests/pmaps/ix2.c:
_stp_pmap_add_ix
_stp_pmap_del
_stp_pmap_print
_stp_pmap_printn_cpu
_stp_pmap_set_ix
tests/pmaps/ix.c:
_stp_pmap_add_ix
_stp_pmap_del
_stp_pmap_print
_stp_pmap_printn_cpu
tests/pmaps/ix_log.c:
_stp_pmap_add_ix
_stp_pmap_del
_stp_pmap_print
_stp_pmap_printn_cpu
tests/pmaps/ix_none.c:
_stp_pmap_add_ix
_stp_pmap_del
_stp_pmap_print
_stp_pmap_printn_cpu
tests/pmaps/map_format.c:
_stp_pmap_add_ssx
_stp_pmap_agg
_stp_pmap_del
_stp_pmap_print
_stp_pmap_set_iiss
_stp_pmap_set_ssi
_stp_printf
_stp_print_flush
tests/pmaps/si.c:
_stp_pmap_add_si
_stp_pmap_del
_stp_pmap_print
_stp_pmap_printn_cpu
tests/pmaps/size.c:
_stp_pmap_add_ii
_stp_pmap_del
_stp_pmap_set_ii
tests/string/print_cstr.c:
_stp_print_cstr
_stp_print_flush
tests/string/printf_A.c:
_stp_printf
_stp_print_flush
tests/string/printf_B.c:
_stp_printf
_stp_print_flush
_stp_sprintf
tests/string/string1.c:
_stp_print
_stp_print_cstr
_stp_print_flush
_stp_sprintf
_stp_string_cat_cstr
_stp_string_cat_string
tests/string/string2.c:
_stp_print
_stp_printf
_stp_print_flush
_stp_sprintf
tests/string/string3.c:
_stp_print
_stp_print_flush
_stp_sprintf
_stp_string_cat
^ permalink raw reply [flat|nested] 3+ messages in thread
* [patch] compile failed when runtime set to relative path
2008-05-29 6:17 runtime tests Stan Cox
@ 2008-05-29 9:12 ` Zhaolei
2008-05-29 17:02 ` runtime tests Frank Ch. Eigler
1 sibling, 0 replies; 3+ messages in thread
From: Zhaolei @ 2008-05-29 9:12 UTC (permalink / raw)
To: systemtap
Hi, everyone
When relative path is set as runtime directory, stap kernel module can not compile.
The problem is like:
# pwd
/root
# stap -v -R ./runtime t.stp
Pass 1: parsed user script and 56 library script(s) in 350usr/10sys/614real ms.
Pass 2: analyzed script: 2 probe(s), 1 function(s), 0 embed(s), 0 global(s) in 300usr/300s
ys/4694real ms.
Pass 3: translated to C into "/tmp/staprYPcfP/stap_51ab93995aca8966db397d992f4aa27d_366.c"
in 0usr/0sys/12real ms.
Pass 4: compiled C into "stap_51ab93995aca8966db397d992f4aa27d_366.ko" in 320usr/120sys/86
8real ms.
Pass 4: compilation failed. Try again with more '-v' (verbose) options.
The reason is that stap writes path of runtime(may be relative path) into Makefile directly.
This problem can be fixed by using absolute path of runtime lib.
If no objection, I will commit the following patch:
Signed-off-by: "Zhaolei" zhaolei@cn.fujitsu.com
diff -Nur systemtap_org/main.cxx systemtap_new/main.cxx
--- systemtap_org/main.cxx 2008-05-27 04:52:29.000000000 +0800
+++ systemtap_new/main.cxx 2008-05-29 08:56:32.000000000 +0800
@@ -662,6 +662,12 @@
usage(s, 1);
}
+ // translate path of runtime to absolute path
+ if (s.runtime_path[0] != '/')
+ {
+ s.runtime_path = string (getenv ("PWD")) + "/" + s.runtime_path;
+ }
+
int rc = 0;
// override PATH and LC_ALL
Regards
Zhaolei
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: runtime tests
2008-05-29 6:17 runtime tests Stan Cox
2008-05-29 9:12 ` [patch] compile failed when runtime set to relative path Zhaolei
@ 2008-05-29 17:02 ` Frank Ch. Eigler
1 sibling, 0 replies; 3+ messages in thread
From: Frank Ch. Eigler @ 2008-05-29 17:02 UTC (permalink / raw)
To: Stan Cox; +Cc: systemtap
Stan Cox <scox@redhat.com> writes:
> Here is a list of which stp_ routines are called by
> runtime/{probes,tests}/*/*.c, in order to help determine if the
> testsuite/systemtap.*/*.stp tests are sufficient coverage. [...]
OK, let's nuke 'em, especially considering that they haven't been
integrated into the main test suite (see also bug #3547) and so are
run approximately never.
- FChE
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-05-29 15:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-29 6:17 runtime tests Stan Cox
2008-05-29 9:12 ` [patch] compile failed when runtime set to relative path Zhaolei
2008-05-29 17:02 ` runtime tests Frank Ch. Eigler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).