summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Baulig <martin@home-of-linux.org>1998-06-13 21:26:49 +0000
committerMartin Baulig <martin@src.gnome.org>1998-06-13 21:26:49 +0000
commit9661c4becc48e0f30450a4e6fc2b14ad6a86955a (patch)
tree628f5c91f6f7fb2dd1c1832f521e1a7cab6b1e31
parentc60d1d54496f33ef3dee91a4dfc229c6cf70f0f5 (diff)
downloadlibgtop-9661c4becc48e0f30450a4e6fc2b14ad6a86955a.tar.gz
New directory. Contains some kernel code to implement a new system call
1998-06-13 Martin Baulig <martin@home-of-linux.org> * kernel: New directory. Contains some kernel code to implement a new system call table () to fetch information directly from the Linux kernel. * sysdeps/kernel: New directory. Uses the table () function from the `kernel' directory to fetch things directly from the Linux kernel. * sysdeps/Makefile.am (DIST_SUBDIRS): Added `kernel'. * configure.in: Removed `build_CC' again.
-rw-r--r--ChangeLog14
-rw-r--r--configure.in14
-rw-r--r--examples/first.c8
-rw-r--r--sysdeps/Makefile.am2
4 files changed, 25 insertions, 13 deletions
diff --git a/ChangeLog b/ChangeLog
index 0128056d..31c702e6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,17 @@
+1998-06-13 Martin Baulig <martin@home-of-linux.org>
+
+ * kernel: New directory. Contains some kernel code to
+ implement a new system call table () to fetch information
+ directly from the Linux kernel.
+
+ * sysdeps/kernel: New directory. Uses the table () function
+ from the `kernel' directory to fetch things directly from
+ the Linux kernel.
+
+ * sysdeps/Makefile.am (DIST_SUBDIRS): Added `kernel'.
+
+ * configure.in: Removed `build_CC' again.
+
1998-06-12 Martin Baulig <baulig@taurus.uni-trier.de>
* include/glibtop/sysdeps.h (glibtop_types_sysdeps):
diff --git a/configure.in b/configure.in
index b79253c1..e64f7da0 100644
--- a/configure.in
+++ b/configure.in
@@ -8,23 +8,12 @@ AC_CANONICAL_SYSTEM
AM_ACLOCAL_INCLUDE(macros)
-dnl This is necessary for cross-compiling for programs
-dnl that need to run on the build host.
-
-AC_CHECK_PROG(build_CC, gcc, gcc)
-if test -z "$build_CC" ; then
- AC_CHECK_PROG(build_CC, cc, cc, , , /usr/ucb/cc)
- test -z "$build_CC" && \
- AC_MSG_ERROR([no acceptable cc found in \$PATH])
-fi
-
-AC_CHECK_TOOL(CC,gcc)
-
AC_ISC_POSIX
AC_PROG_CC
AC_STDC_HEADERS
AC_ARG_PROGRAM
+AC_CHECK_TOOL(CC,gcc)
AC_CHECK_TOOL(RANLIB,ranlib)
AC_CHECK_TOOL(AS,as)
AC_CHECK_TOOL(AR,ar)
@@ -226,6 +215,7 @@ sysdeps/stub/Makefile
sysdeps/sun4/Makefile
sysdeps/osf1/Makefile
sysdeps/linux/Makefile
+sysdeps/kernel/Makefile
src/Makefile
src/server/Makefile
src/proxy/Makefile
diff --git a/examples/first.c b/examples/first.c
index d93e8f3b..2853eb2a 100644
--- a/examples/first.c
+++ b/examples/first.c
@@ -33,6 +33,14 @@
#define PROFILE_COUNT 1
#endif
+#include <unistd.h>
+#include <linux/unistd.h>
+#include <linux/table.h>
+
+#include <syscall.h>
+
+_syscall3 (int, table, int, type, union table *, tbl, const void *, param);
+
int
main (int argc, char *argv [])
{
diff --git a/sysdeps/Makefile.am b/sysdeps/Makefile.am
index 5625c33f..d12f6d78 100644
--- a/sysdeps/Makefile.am
+++ b/sysdeps/Makefile.am
@@ -12,4 +12,4 @@ endif
SUBDIRS = @sysdeps_dir@ common $(names_SUBDIRS) $(guile_SUBDIRS)
-DIST_SUBDIRS = common guile linux names osf1 stub sun4
+DIST_SUBDIRS = common guile linux kernel names osf1 stub sun4