Module Name: src Committed By: christos Date: Thu Mar 20 20:45:32 UTC 2014
Modified Files: src/sys/arch/amd64/include: pmc.h types.h Log Message: make pmc compile with amd64 To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/arch/amd64/include/pmc.h cvs rdiff -u -r1.43 -r1.44 src/sys/arch/amd64/include/types.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/amd64/include/pmc.h diff -u src/sys/arch/amd64/include/pmc.h:1.1 src/sys/arch/amd64/include/pmc.h:1.2 --- src/sys/arch/amd64/include/pmc.h:1.1 Sat Apr 26 14:39:46 2003 +++ src/sys/arch/amd64/include/pmc.h Thu Mar 20 16:45:32 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: pmc.h,v 1.1 2003/04/26 18:39:46 fvdl Exp $ */ +/* $NetBSD: pmc.h,v 1.2 2014/03/20 20:45:32 christos Exp $ */ /*- * Copyright (c) 2000 Zembu Labs, Inc. @@ -34,10 +34,38 @@ */ #ifdef _KERNEL +/* + * LEGACY PMC support + */ +struct x86_64_pmc_info_args; int pmc_info(struct proc *, struct x86_64_pmc_info_args *, register_t *); +struct x86_64_pmc_startstop_args; int pmc_startstop(struct proc *, struct x86_64_pmc_startstop_args *, register_t *); +struct x86_64_pmc_read_args; int pmc_read(struct proc *, struct x86_64_pmc_read_args *, register_t *); +/* END LEGACY PMC SUPPORT */ + +#define pmc_md_fork(p1,p2) +#define pmc_get_num_counters() (0) +#define pmc_get_counter_type(c) (0) +#define pmc_save_context(p) +#define pmc_restore_context(p) +#define pmc_enable_counter(p,c) +#define pmc_disable_counter(p,c) +#define pmc_accumulate(p1,p2) +#define pmc_process_exit(p1) +#define pmc_counter_isconfigured(p,c) (0) +#define pmc_counter_isrunning(p,c) (0) +#define pmc_start_profiling(c,f) (0) +#define pmc_stop_profiling(c) (0) +#define pmc_alloc_kernel_counter(c,f) (0) +#define pmc_free_kernel_counter(c) (0) +#define pmc_configure_counter(p,c,f) (0) +#define pmc_get_counter_value(p,c,f,pv) (0) + +#define PMC_ENABLED(p) (0) + #endif Index: src/sys/arch/amd64/include/types.h diff -u src/sys/arch/amd64/include/types.h:1.43 src/sys/arch/amd64/include/types.h:1.44 --- src/sys/arch/amd64/include/types.h:1.43 Sat Nov 30 20:05:16 2013 +++ src/sys/arch/amd64/include/types.h Thu Mar 20 16:45:32 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: types.h,v 1.43 2013/12/01 01:05:16 christos Exp $ */ +/* $NetBSD: types.h,v 1.44 2014/03/20 20:45:32 christos Exp $ */ /*- * Copyright (c) 1990 The Regents of the University of California. @@ -60,6 +60,8 @@ typedef unsigned long vsize_t; #define PRIuVSIZE "lu" #endif +typedef int pmc_evid_t; +typedef __uint64_t pmc_ctr_t; typedef long int register_t; typedef int register32_t; #define PRIxREGISTER "lx"