diff options
author | jkoshy <jkoshy@FreeBSD.org> | 2008-09-22 14:31:24 +0000 |
---|---|---|
committer | jkoshy <jkoshy@FreeBSD.org> | 2008-09-22 14:31:24 +0000 |
commit | 0d9d822db07f9cab794a0fca4779e08e454504ec (patch) | |
tree | 6c4ca99b91c50853f9604eff470930128eafbd74 /lib/libpmc/pmc.3 | |
parent | 9d661b5bf6fd3a80ea2fe0d5693310068b37e13b (diff) | |
download | FreeBSD-src-0d9d822db07f9cab794a0fca4779e08e454504ec.zip FreeBSD-src-0d9d822db07f9cab794a0fca4779e08e454504ec.tar.gz |
Document changes in behaviour due to sparse CPU numbering support.
Diffstat (limited to 'lib/libpmc/pmc.3')
-rw-r--r-- | lib/libpmc/pmc.3 | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/libpmc/pmc.3 b/lib/libpmc/pmc.3 index a031928..9dd25f0 100644 --- a/lib/libpmc/pmc.3 +++ b/lib/libpmc/pmc.3 @@ -261,7 +261,14 @@ CPU is running unprivileged code. .It Li PMC_CAP_WRITE The ability to write to performance counters. .El -.Ss Functional Grouping +.Ss CPU Naming Conventions +CPUs are named using small integers from zero uptil, but +excluding, the value returned by function +.Fn pmc_ncpu . +On platforms supporting sparsely numbered CPUs not all the numbers in +this range will denote valid CPUs. +Operations on non-existent CPUs will return an error. +.Ss Functional Grouping of the API This section contains a brief overview of the available functionality in the PMC library. Each function listed here is described further in its own manual page. @@ -342,7 +349,7 @@ system. Retrieve statistics maintained by .Xr hwpmc 4 . .It Fn pmc_ncpu -Determine the number of CPUs in the system. +Determine the greatest possible CPU number on the system. .It Fn pmc_npmc Return the number of hardware PMCs present in a given CPU. .It Fn pmc_pmcinfo |