From 5b5f397dfcdf87818e71e7c1ea5aa0dcc5d903ea Mon Sep 17 00:00:00 2001 From: imp Date: Tue, 19 Apr 2005 21:12:57 +0000 Subject: Minimal changes to get this to compile with -DDEBUG defined as well as hack a couple used before set warnings for LINT happiness. --- sys/dev/hwpmc/hwpmc_mod.c | 4 +++- sys/hwpmc/hwpmc_mod.c | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/sys/dev/hwpmc/hwpmc_mod.c b/sys/dev/hwpmc/hwpmc_mod.c index 89b2954..1ff8ea5 100644 --- a/sys/dev/hwpmc/hwpmc_mod.c +++ b/sys/dev/hwpmc/hwpmc_mod.c @@ -312,6 +312,7 @@ pmc_debugflags_parse(char *newstr, char *fence) level = 0xF; /* max verbosity */ p = newstr; + e = newstr + strlen(p); for (; p < fence && (c = *p);) { @@ -1841,7 +1842,7 @@ pmc_release_pmc_descriptor(struct pmc *pm) /* * First, we take the PMC off hardware. */ - + cpu = 0; if (PMC_IS_SYSTEM_MODE(pm->pm_mode)) { /* @@ -2978,6 +2979,7 @@ pmc_syscall_handler(struct thread *td, void *syscall_args) if ((error = copyin(arg, &prw, sizeof(prw))) != 0) break; + ri = 0; PMCDBG(PMC,OPS,1, "rw id=%d flags=0x%x", prw.pm_pmcid, prw.pm_flags); diff --git a/sys/hwpmc/hwpmc_mod.c b/sys/hwpmc/hwpmc_mod.c index 89b2954..1ff8ea5 100644 --- a/sys/hwpmc/hwpmc_mod.c +++ b/sys/hwpmc/hwpmc_mod.c @@ -312,6 +312,7 @@ pmc_debugflags_parse(char *newstr, char *fence) level = 0xF; /* max verbosity */ p = newstr; + e = newstr + strlen(p); for (; p < fence && (c = *p);) { @@ -1841,7 +1842,7 @@ pmc_release_pmc_descriptor(struct pmc *pm) /* * First, we take the PMC off hardware. */ - + cpu = 0; if (PMC_IS_SYSTEM_MODE(pm->pm_mode)) { /* @@ -2978,6 +2979,7 @@ pmc_syscall_handler(struct thread *td, void *syscall_args) if ((error = copyin(arg, &prw, sizeof(prw))) != 0) break; + ri = 0; PMCDBG(PMC,OPS,1, "rw id=%d flags=0x%x", prw.pm_pmcid, prw.pm_flags); -- cgit v1.1