Whamcloud - gitweb
- get pinger support utils building
authorzab <zab>
Tue, 20 May 2003 22:26:31 +0000 (22:26 +0000)
committerzab <zab>
Tue, 20 May 2003 22:26:31 +0000 (22:26 +0000)
- oops, s/obj/src/ .. the 2.5 build can have different source and target trees
- make all kp30's thread_size business conditional on __kernel__
- when compiled in SYMBOL_GET amounts to a weak reference which won't be
  satisfied by a static symbol in the link, only kping_client wasn't right

21 files changed:
lnet/Kernelenv.in
lnet/Kernelenv.mk
lnet/Makefile.mk
lnet/include/linux/kp30.h
lnet/klnds/socklnd/Makefile.mk
lnet/lnet/Makefile.mk
lnet/router/Makefile.mk
lnet/tests/ping_cli.c
lnet/tests/sping_cli.c
lnet/utils/.cvsignore
lustre/Makefile.mk
lustre/portals/Kernelenv.in
lustre/portals/Kernelenv.mk
lustre/portals/Makefile.mk
lustre/portals/include/linux/kp30.h
lustre/portals/knals/socknal/Makefile.mk
lustre/portals/portals/Makefile.mk
lustre/portals/router/Makefile.mk
lustre/portals/tests/ping_cli.c
lustre/portals/tests/sping_cli.c
lustre/portals/utils/.cvsignore

index 29a713f..c47702f 100644 (file)
@@ -1 +1,2 @@
-EXTRA_CFLAGS= -Ifs/lustre/include -Ifs/lustre/portals/include
+EXTRA_CFLAGS := -Ifs/lustre/include -Ifs/lustre/portals/include
+HOSTCFLAGS := $(EXTRA_CFLAGS)
index 29a713f..c47702f 100644 (file)
@@ -1 +1,2 @@
-EXTRA_CFLAGS= -Ifs/lustre/include -Ifs/lustre/portals/include
+EXTRA_CFLAGS := -Ifs/lustre/include -Ifs/lustre/portals/include
+HOSTCFLAGS := $(EXTRA_CFLAGS)
index cda2593..73a19df 100644 (file)
@@ -1,4 +1,4 @@
-include $(obj)/Kernelenv
+include $(src)/Kernelenv
 
 # The ordering of these determines the order that each subsystem's 
 # module_init() functions are called in.  if these are changed make sure
@@ -8,3 +8,5 @@ obj-y += portals/
 obj-y += router/
 obj-y += knals/
 obj-y += tests/
+
+obj-m += utils/
index f45f3c4..6611e99 100644 (file)
@@ -80,7 +80,9 @@ extern unsigned int portal_printk;
 #define D_RPCTRACE  (1 << 20) /* for distributed debugging */
 #define D_VFSTRACE  (1 << 21)
 
-#include <linux/sched.h> /* THREAD_SIZE */
+#ifdef __KERNEL__
+# include <linux/sched.h> /* THREAD_SIZE */
+
 #ifdef  __arch_ia64__
 #define CDEBUG_STACK(var) (&var & (THREAD_SIZE - 1))
 #else
@@ -89,7 +91,6 @@ extern unsigned int portal_printk;
                             (THREAD_SIZE - 1)))
 #endif
 
-#ifdef __KERNEL__
 #define CHECK_STACK(stack)                                                    \
         do {                                                                  \
                 if ((stack) > 3*THREAD_SIZE/4 && (stack) > portal_stack)      \
@@ -101,6 +102,7 @@ extern unsigned int portal_printk;
         } while (0)
 #else
 #define CHECK_STACK(stack) do{}while(0)
+#define CDEBUG_STACK(var) (0)
 #endif
 
 #define CDEBUG(mask, format, a...)                                            \
index afa92a7..5c1b366 100644 (file)
@@ -3,7 +3,7 @@
 # This code is issued under the GNU General Public License.
 # See the file COPYING in this distribution
 
-include $(obj)/../../Kernelenv
+include $(src)/../../Kernelenv
 
 obj-y += ksocknal.o
 ksocknal-objs    := socknal.o socknal_cb.o
index 3fc8d36..7822846 100644 (file)
@@ -3,7 +3,7 @@
 # This code is issued under the GNU General Public License.
 # See the file COPYING in this distribution
 
-include $(obj)/../Kernelenv
+include $(src)/../Kernelenv
 
 obj-y += portals.o
 portals-objs    :=     lib-dispatch.o lib-eq.o lib-init.o lib-md.o lib-me.o \
index dc007fc..9b02c03 100644 (file)
@@ -3,7 +3,7 @@
 # This code is issued under the GNU General Public License.
 # See the file COPYING in this distribution
 
-include $(obj)/../Kernelenv
+include $(src)/../Kernelenv
 
 obj-y += kptlrouter.o
 kptlrouter-objs    := router.o proc.o
index 389ffbb..806d80f 100644 (file)
@@ -260,7 +260,7 @@ pingcli_start(struct portal_ioctl_data *args)
 
 
 /* called by the portals_ioctl for ping requests */
-static int kping_client(struct portal_ioctl_data *args)
+int kping_client(struct portal_ioctl_data *args)
 {
         PORTAL_ALLOC (client, sizeof(struct pingcli_data));
         if (client == NULL)
index 4cef08b..7affed8 100644 (file)
@@ -235,7 +235,7 @@ pingcli_start(struct portal_ioctl_data *args)
 
 
 /* called by the portals_ioctl for ping requests */
-static int kping_client(struct portal_ioctl_data *args)
+int kping_client(struct portal_ioctl_data *args)
 {
 
         PORTAL_ALLOC (client, sizeof(struct pingcli_data));
index 041cd6b..bf37bf4 100644 (file)
@@ -5,3 +5,4 @@ debugctl
 ptlctl
 .deps
 routerstat
+.*.cmd
index e540148..89cf8b7 100644 (file)
@@ -1,4 +1,5 @@
 include fs/lustre/portals/Kernelenv
 
 obj-y += portals/
-obj-y += mds/
+# uncomment me when we have the kernel patch, and such
+#obj-y += mds/
index 29a713f..c47702f 100644 (file)
@@ -1 +1,2 @@
-EXTRA_CFLAGS= -Ifs/lustre/include -Ifs/lustre/portals/include
+EXTRA_CFLAGS := -Ifs/lustre/include -Ifs/lustre/portals/include
+HOSTCFLAGS := $(EXTRA_CFLAGS)
index 29a713f..c47702f 100644 (file)
@@ -1 +1,2 @@
-EXTRA_CFLAGS= -Ifs/lustre/include -Ifs/lustre/portals/include
+EXTRA_CFLAGS := -Ifs/lustre/include -Ifs/lustre/portals/include
+HOSTCFLAGS := $(EXTRA_CFLAGS)
index cda2593..73a19df 100644 (file)
@@ -1,4 +1,4 @@
-include $(obj)/Kernelenv
+include $(src)/Kernelenv
 
 # The ordering of these determines the order that each subsystem's 
 # module_init() functions are called in.  if these are changed make sure
@@ -8,3 +8,5 @@ obj-y += portals/
 obj-y += router/
 obj-y += knals/
 obj-y += tests/
+
+obj-m += utils/
index f45f3c4..6611e99 100644 (file)
@@ -80,7 +80,9 @@ extern unsigned int portal_printk;
 #define D_RPCTRACE  (1 << 20) /* for distributed debugging */
 #define D_VFSTRACE  (1 << 21)
 
-#include <linux/sched.h> /* THREAD_SIZE */
+#ifdef __KERNEL__
+# include <linux/sched.h> /* THREAD_SIZE */
+
 #ifdef  __arch_ia64__
 #define CDEBUG_STACK(var) (&var & (THREAD_SIZE - 1))
 #else
@@ -89,7 +91,6 @@ extern unsigned int portal_printk;
                             (THREAD_SIZE - 1)))
 #endif
 
-#ifdef __KERNEL__
 #define CHECK_STACK(stack)                                                    \
         do {                                                                  \
                 if ((stack) > 3*THREAD_SIZE/4 && (stack) > portal_stack)      \
@@ -101,6 +102,7 @@ extern unsigned int portal_printk;
         } while (0)
 #else
 #define CHECK_STACK(stack) do{}while(0)
+#define CDEBUG_STACK(var) (0)
 #endif
 
 #define CDEBUG(mask, format, a...)                                            \
index afa92a7..5c1b366 100644 (file)
@@ -3,7 +3,7 @@
 # This code is issued under the GNU General Public License.
 # See the file COPYING in this distribution
 
-include $(obj)/../../Kernelenv
+include $(src)/../../Kernelenv
 
 obj-y += ksocknal.o
 ksocknal-objs    := socknal.o socknal_cb.o
index 3fc8d36..7822846 100644 (file)
@@ -3,7 +3,7 @@
 # This code is issued under the GNU General Public License.
 # See the file COPYING in this distribution
 
-include $(obj)/../Kernelenv
+include $(src)/../Kernelenv
 
 obj-y += portals.o
 portals-objs    :=     lib-dispatch.o lib-eq.o lib-init.o lib-md.o lib-me.o \
index dc007fc..9b02c03 100644 (file)
@@ -3,7 +3,7 @@
 # This code is issued under the GNU General Public License.
 # See the file COPYING in this distribution
 
-include $(obj)/../Kernelenv
+include $(src)/../Kernelenv
 
 obj-y += kptlrouter.o
 kptlrouter-objs    := router.o proc.o
index 389ffbb..806d80f 100644 (file)
@@ -260,7 +260,7 @@ pingcli_start(struct portal_ioctl_data *args)
 
 
 /* called by the portals_ioctl for ping requests */
-static int kping_client(struct portal_ioctl_data *args)
+int kping_client(struct portal_ioctl_data *args)
 {
         PORTAL_ALLOC (client, sizeof(struct pingcli_data));
         if (client == NULL)
index 4cef08b..7affed8 100644 (file)
@@ -235,7 +235,7 @@ pingcli_start(struct portal_ioctl_data *args)
 
 
 /* called by the portals_ioctl for ping requests */
-static int kping_client(struct portal_ioctl_data *args)
+int kping_client(struct portal_ioctl_data *args)
 {
 
         PORTAL_ALLOC (client, sizeof(struct pingcli_data));
index 041cd6b..bf37bf4 100644 (file)
@@ -5,3 +5,4 @@ debugctl
 ptlctl
 .deps
 routerstat
+.*.cmd