Subject: Change to struct i386_pmc_info_args
To: None <port-i386@netbsd.org>
From: Gregory McGarry <g.mcgarry@ieee.org>
List: port-i386
Date: 06/07/2002 16:56:49
Is this interface change OK?  It will cause problems for old
binaries, won't it?

	-- Gregory McGarry <g.mcgarry@ieee.org>


Index: include/sysarch.h
===================================================================
RCS file: /cvsroot/syssrc/sys/arch/i386/include/sysarch.h,v
retrieving revision 1.12
diff -u -p -r1.12 sysarch.h
--- include/sysarch.h   2002/06/07 04:04:47     1.12
+++ include/sysarch.h   2002/06/07 04:50:37
@@ -54,6 +54,7 @@ struct i386_set_ioperm_args {
 
 struct i386_pmc_info_args {
        int     type;
        int     flags;
+       int     ncounters;
 };
 
Index: i386/pmc.c
===================================================================
RCS file: /cvsroot/syssrc/sys/arch/i386/i386/pmc.c,v
retrieving revision 1.4
diff -u -p -r1.4 pmc.c
--- i386/pmc.c  2002/06/07 04:04:47     1.4
+++ i386/pmc.c  2002/06/07 04:50:38
@@ -117,6 +117,7 @@ pmc_info(struct proc *p, struct i386_pmc
 
        rv.type = pmc_type;
        rv.flags = pmc_flags;
+       rv.ncounters = pmc_ncounters;
 
        return (copyout(&rv, uargs, sizeof(rv)));
 }