diff options
author | David Smith <dsmith@redhat.com> | 2009-04-09 12:06:05 -0500 |
---|---|---|
committer | David Smith <dsmith@redhat.com> | 2009-04-09 12:06:05 -0500 |
commit | d5cd287f7860df8752f93de93fcd1cc68884d56b (patch) | |
tree | 3925169ed4a5742464677f50f7a55e18cad1b561 /buildrun.cxx | |
parent | 52356a26e1825acbd9146337ffdbed9b0e173f2b (diff) | |
download | systemtap-steved-d5cd287f7860df8752f93de93fcd1cc68884d56b.tar.gz systemtap-steved-d5cd287f7860df8752f93de93fcd1cc68884d56b.tar.xz systemtap-steved-d5cd287f7860df8752f93de93fcd1cc68884d56b.zip |
Uses <asm/syscall.h> when available.
2009-04-09 David Smith <dsmith@redhat.com>
* buildrun.cxx (compile_pass): Compile autoconf test for
<asm/syscall.h>.
* runtime/autoconf-asm-syscall.c: New "autoconf" test the presence
of <asm/syscall.h>.
* runtime/syscall.h: If <asm/syscall.h> exists, use it.
Otherwise, use our private copy of the functions for each
architecture.
(syscall_get_nr): Renamed from __stp_user_syscall_nr().
(syscall_get_return_value): Renamed from
__stp_user_syscall_return_value().
(syscall_get_arguments): Renamed from __stp_user_syscall_arg().
* runtime/task_finder.c
(__stp_utrace_task_finder_target_syscall_exit): Uses new syscall.h
functions.
* tapset/utrace.stp: Ditto.
Diffstat (limited to 'buildrun.cxx')
-rw-r--r-- | buildrun.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/buildrun.cxx b/buildrun.cxx index bcd4c1fe..82ac9d4e 100644 --- a/buildrun.cxx +++ b/buildrun.cxx @@ -165,6 +165,8 @@ compile_pass (systemtap_session& s) #endif output_autoconf(s, o, "autoconf-save-stack-trace.c", "STAPCONF_KERNEL_STACKTRACE", NULL); + output_autoconf(s, o, "autoconf-asm-syscall.c", + "STAPCONF_ASM_SYSCALL_H", NULL); o << module_cflags << " += -include $(STAPCONF_HEADER)" << endl; |