mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix bug: increment the value of pmcstat_npmcs instead of moving pointer
to the next int position.
Bug was introduced in r324959 ("Extract a set of pmcstat functions and
interfaces to the new internal library -- libpmcstat.")
This fixes pmcstat top mode (-T) operation.
Example: pmcstat -n1 -S clock.hard -T
Reported by: Peter Holm <peter@holm.cc>
Sponsored by: DARPA, AFRL
This commit is contained in:
parent
8fc8068eba
commit
167b8a609d
1 changed files with 1 additions and 1 deletions
|
|
@ -101,7 +101,7 @@ pmcstat_pmcid_add(pmc_id_t pmcid, pmcstat_interned_string ps,
|
|||
|
||||
pr->pr_pmcid = pmcid;
|
||||
pr->pr_pmcname = ps;
|
||||
pr->pr_pmcin = *pmcstat_npmcs++;
|
||||
pr->pr_pmcin = (*pmcstat_npmcs)++;
|
||||
pr->pr_samples = 0;
|
||||
pr->pr_dubious_frames = 0;
|
||||
pr->pr_merge = prm == NULL ? pr : prm;
|
||||
|
|
|
|||
Loading…
Reference in a new issue