All of lore.kernel.org
 help / color / mirror / Atom feed
* [Linux-ia64] [PATCH] Compile fix for perfmon 2
@ 2003-06-09 17:29 Martin Hicks
  2003-06-09 18:27 ` Martin Hicks
  0 siblings, 1 reply; 2+ messages in thread
From: Martin Hicks @ 2003-06-09 17:29 UTC (permalink / raw)
  To: linux-ia64

Stephane and David,

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

thanks
mh

-- 
Wild Open Source Inc.                  mort@wildopensource.com

# 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	mort@green.i.bork.org	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;


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Linux-ia64] [PATCH] Compile fix for perfmon 2
  2003-06-09 17:29 [Linux-ia64] [PATCH] Compile fix for perfmon 2 Martin Hicks
@ 2003-06-09 18:27 ` Martin Hicks
  0 siblings, 0 replies; 2+ messages in thread
From: Martin Hicks @ 2003-06-09 18:27 UTC (permalink / raw)
  To: linux-ia64

On Mon, Jun 09, 2003 at 01:29:23PM -0400, Martin Hicks wrote:
> 
> 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

-- 
Wild Open Source Inc.                  mort@wildopensource.com

# 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	mort@green.i.bork.org	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
 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-06-09 18:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-09 17:29 [Linux-ia64] [PATCH] Compile fix for perfmon 2 Martin Hicks
2003-06-09 18:27 ` Martin Hicks

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.