Skip to contentSkip to conversation

Compile fix for perfmon 2

PATCH In review Martin Hicks 1 participant 2 messages Jun 9, 2003

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Compile fix for perfmon 2

Stephane and David,

Here is a little patch to fix compilation of perfmon 2 when it is turned off.

thanks
mh

Signature · 27 lines
Wild Open Source Inc.                  [email protected]

# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
#	           ChangeSet	1.1125  -> 1.1126 
#	arch/ia64/kernel/perfmon.c	1.47    -> 1.48   
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 03/06/09	[email protected]	1.1126
# Fix for the new perfmon in the case where it is turned off.
# --------------------------------------------
#
diff -Nru a/arch/ia64/kernel/perfmon.c b/arch/ia64/kernel/perfmon.c
--- a/arch/ia64/kernel/perfmon.c	Mon Jun  9 13:27:15 2003
+++ b/arch/ia64/kernel/perfmon.c	Mon Jun  9 13:27:15 2003
@@ -6503,7 +6503,7 @@
 
 #else /* !CONFIG_PERFMON */
 asmlinkage long
-sys_perfmonctl (pfm_ctxid_t ctxid, int cmd, void *req, int count, long arg5, long arg6,
+sys_perfmonctl (int fd, int cmd, void *req, int count, long arg5, long arg6,
 		long arg7, long arg8, long stack)
 {
 	return -ENOSYS;
#1 lore raw
Quoted 5 lines · Martin Hicks

Stephane and David,

Here is a little patch to fix compilation of perfmon 2 when it is turned off.

I jumped the gun on this a bit. With the first patch perfmon*.c compiles, but the kernel doesn't link. Here's a fix.

mh

Signature · 34 lines
Wild Open Source Inc.                  [email protected]

# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
#	           ChangeSet	1.1126  -> 1.1127 
#	arch/ia64/kernel/Makefile	1.19    -> 1.20   
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 03/06/09	[email protected]	1.1127
# This lets the kernel link properly if perfmon is turned off.
# --------------------------------------------
#
diff -Nru a/arch/ia64/kernel/Makefile b/arch/ia64/kernel/Makefile
--- a/arch/ia64/kernel/Makefile	Mon Jun  9 14:25:22 2003
+++ b/arch/ia64/kernel/Makefile	Mon Jun  9 14:25:22 2003
@@ -5,7 +5,7 @@
 extra-y	:= head.o init_task.o
 
 obj-y := acpi.o entry.o efi.o efi_stub.o gate.o ia64_ksyms.o irq.o irq_ia64.o irq_lsapic.o	\
-	 ivt.o machvec.o pal.o perfmon.o perfmon_default_smpl.o process.o ptrace.o sal.o \
+	 ivt.o machvec.o pal.o perfmon.o process.o ptrace.o sal.o \
 	 semaphore.o setup.o signal.o sys_ia64.o time.o traps.o unaligned.o unwind.o
 
 obj-$(CONFIG_EFI_VARS)		+= efivars.o
@@ -18,6 +18,7 @@
 obj-$(CONFIG_IOSAPIC)		+= iosapic.o
 obj-$(CONFIG_MODULES)		+= module.o
 obj-$(CONFIG_SMP)		+= smp.o smpboot.o
+obj-$(CONFIG_PERFMON)		+= perfmon_default_smpl.o
 
 arch/$(ARCH)/kernel/asm-offsets.s: include/asm-$(ARCH)/.offsets.h.stamp