Deleted Added
full compact
hwpmc_mod.c (148562) hwpmc_mod.c (149373)
1/*-
2 * Copyright (c) 2003-2005 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

--- 12 unchanged lines hidden (view full) ---

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
28#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2003-2005 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

--- 12 unchanged lines hidden (view full) ---

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
28#include <sys/cdefs.h>
29__FBSDID("$FreeBSD: head/sys/dev/hwpmc/hwpmc_mod.c 148562 2005-07-30 09:02:42Z jkoshy $");
29__FBSDID("$FreeBSD: head/sys/dev/hwpmc/hwpmc_mod.c 149373 2005-08-22 17:51:08Z jkoshy $");
30
31#include <sys/param.h>
32#include <sys/eventhandler.h>
33#include <sys/jail.h>
34#include <sys/kernel.h>
35#include <sys/kthread.h>
36#include <sys/limits.h>
37#include <sys/lock.h>

--- 3990 unchanged lines hidden (view full) ---

4028 pmclog_initialize();
4029
4030 /* set hook functions */
4031 pmc_intr = md->pmd_intr;
4032 pmc_hook = pmc_hook_handler;
4033
4034 if (error == 0) {
4035 printf(PMC_MODULE_NAME ":");
30
31#include <sys/param.h>
32#include <sys/eventhandler.h>
33#include <sys/jail.h>
34#include <sys/kernel.h>
35#include <sys/kthread.h>
36#include <sys/limits.h>
37#include <sys/lock.h>

--- 3990 unchanged lines hidden (view full) ---

4028 pmclog_initialize();
4029
4030 /* set hook functions */
4031 pmc_intr = md->pmd_intr;
4032 pmc_hook = pmc_hook_handler;
4033
4034 if (error == 0) {
4035 printf(PMC_MODULE_NAME ":");
4036 for (n = 0; n < (int) md->pmd_nclass; n++)
4037 printf(" %s(%d)",
4036 for (n = 0; n < (int) md->pmd_nclass; n++) {
4037 printf(" %s/%d/0x%b",
4038 pmc_name_of_pmcclass[md->pmd_classes[n].pm_class],
4038 pmc_name_of_pmcclass[md->pmd_classes[n].pm_class],
4039 md->pmd_nclasspmcs[n]);
4039 md->pmd_nclasspmcs[n],
4040 md->pmd_classes[n].pm_caps,
4041 "\20"
4042 "\1INT\2USR\3SYS\4EDG\5THR"
4043 "\6REA\7WRI\10INV\11QUA\12PRC"
4044 "\13TAG\14CSC");
4045 }
4040 printf("\n");
4041 }
4042
4043 return error;
4044}
4045
4046/* prepare to be unloaded */
4047static void

--- 155 unchanged lines hidden ---
4046 printf("\n");
4047 }
4048
4049 return error;
4050}
4051
4052/* prepare to be unloaded */
4053static void

--- 155 unchanged lines hidden ---