-EXTRA_CFLAGS= -Ifs/lustre/include -Ifs/lustre/portals/include
+EXTRA_CFLAGS := -Ifs/lustre/include -Ifs/lustre/portals/include
+HOSTCFLAGS := $(EXTRA_CFLAGS)
-EXTRA_CFLAGS= -Ifs/lustre/include -Ifs/lustre/portals/include
+EXTRA_CFLAGS := -Ifs/lustre/include -Ifs/lustre/portals/include
+HOSTCFLAGS := $(EXTRA_CFLAGS)
-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
obj-y += router/
obj-y += knals/
obj-y += tests/
+
+obj-m += utils/
#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
(THREAD_SIZE - 1)))
#endif
-#ifdef __KERNEL__
#define CHECK_STACK(stack) \
do { \
if ((stack) > 3*THREAD_SIZE/4 && (stack) > portal_stack) \
} while (0)
#else
#define CHECK_STACK(stack) do{}while(0)
+#define CDEBUG_STACK(var) (0)
#endif
#define CDEBUG(mask, format, a...) \
# 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
# 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 \
# 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
/* 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)
/* 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));
ptlctl
.deps
routerstat
+.*.cmd
include fs/lustre/portals/Kernelenv
obj-y += portals/
-obj-y += mds/
+# uncomment me when we have the kernel patch, and such
+#obj-y += mds/
-EXTRA_CFLAGS= -Ifs/lustre/include -Ifs/lustre/portals/include
+EXTRA_CFLAGS := -Ifs/lustre/include -Ifs/lustre/portals/include
+HOSTCFLAGS := $(EXTRA_CFLAGS)
-EXTRA_CFLAGS= -Ifs/lustre/include -Ifs/lustre/portals/include
+EXTRA_CFLAGS := -Ifs/lustre/include -Ifs/lustre/portals/include
+HOSTCFLAGS := $(EXTRA_CFLAGS)
-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
obj-y += router/
obj-y += knals/
obj-y += tests/
+
+obj-m += utils/
#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
(THREAD_SIZE - 1)))
#endif
-#ifdef __KERNEL__
#define CHECK_STACK(stack) \
do { \
if ((stack) > 3*THREAD_SIZE/4 && (stack) > portal_stack) \
} while (0)
#else
#define CHECK_STACK(stack) do{}while(0)
+#define CDEBUG_STACK(var) (0)
#endif
#define CDEBUG(mask, format, a...) \
# 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
# 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 \
# 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
/* 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)
/* 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));
ptlctl
.deps
routerstat
+.*.cmd