libpmc.c (212224) | libpmc.c (226514) |
---|---|
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 212224 2010-09-05 13:31:14Z fabient $"); | 28__FBSDID("$FreeBSD: head/lib/libpmc/libpmc.c 226514 2011-10-18 15:25:43Z fabient $"); |
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> --- 2554 unchanged lines hidden (view full) --- 2591 2592int 2593pmc_flush_logfile(void) 2594{ 2595 return (PMC_CALL(FLUSHLOG,0)); 2596} 2597 2598int | 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> --- 2554 unchanged lines hidden (view full) --- 2591 2592int 2593pmc_flush_logfile(void) 2594{ 2595 return (PMC_CALL(FLUSHLOG,0)); 2596} 2597 2598int |
2599pmc_close_logfile(void) 2600{ 2601 return (PMC_CALL(CLOSELOG,0)); 2602} 2603 2604int |
|
2599pmc_get_driver_stats(struct pmc_driverstats *ds) 2600{ 2601 struct pmc_op_getdriverstats gms; 2602 2603 if (PMC_CALL(GETDRIVERSTATS, &gms) < 0) 2604 return (-1); 2605 2606 /* copy out fields in the current userland<->library interface */ --- 521 unchanged lines hidden --- | 2605pmc_get_driver_stats(struct pmc_driverstats *ds) 2606{ 2607 struct pmc_op_getdriverstats gms; 2608 2609 if (PMC_CALL(GETDRIVERSTATS, &gms) < 0) 2610 return (-1); 2611 2612 /* copy out fields in the current userland<->library interface */ --- 521 unchanged lines hidden --- |