libpmc.c (226514) | libpmc.c (228557) |
---|---|
1/*- 2 * Copyright (c) 2003-2008 Joseph Koshy 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2003-2008 Joseph Koshy 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/lib/libpmc/libpmc.c 226514 2011-10-18 15:25:43Z fabient $"); | 28__FBSDID("$FreeBSD: head/lib/libpmc/libpmc.c 228557 2011-12-16 00:13:43Z dim $"); |
29 30#include <sys/types.h> 31#include <sys/module.h> 32#include <sys/pmc.h> 33#include <sys/syscall.h> 34 35#include <ctype.h> 36#include <errno.h> --- 247 unchanged lines hidden (view full) --- 284 285static const char * pmc_class_names[] = { 286#undef __PMC_CLASS 287#define __PMC_CLASS(C) #C , 288 __PMC_CLASSES() 289}; 290 291struct pmc_cputype_map { | 29 30#include <sys/types.h> 31#include <sys/module.h> 32#include <sys/pmc.h> 33#include <sys/syscall.h> 34 35#include <ctype.h> 36#include <errno.h> --- 247 unchanged lines hidden (view full) --- 284 285static const char * pmc_class_names[] = { 286#undef __PMC_CLASS 287#define __PMC_CLASS(C) #C , 288 __PMC_CLASSES() 289}; 290 291struct pmc_cputype_map { |
292 enum pmc_class pm_cputype; | 292 enum pmc_cputype pm_cputype; |
293 const char *pm_name; 294}; 295 296static const struct pmc_cputype_map pmc_cputype_names[] = { 297#undef __PMC_CPU 298#define __PMC_CPU(S, V, D) { .pm_cputype = PMC_CPU_##S, .pm_name = #S } , 299 __PMC_CPUS() 300}; --- 2833 unchanged lines hidden --- | 293 const char *pm_name; 294}; 295 296static const struct pmc_cputype_map pmc_cputype_names[] = { 297#undef __PMC_CPU 298#define __PMC_CPU(S, V, D) { .pm_cputype = PMC_CPU_##S, .pm_name = #S } , 299 __PMC_CPUS() 300}; --- 2833 unchanged lines hidden --- |