mirror of
https://github.com/opnsense/src.git
synced 2026-05-19 08:25:22 -04:00
libpmc: remove pe->alias
It has never been a part of upstream's struct pmu_event. The jevents
utility will not fill this field, so remove it.
Reviewed by: gnn
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D30530
(cherry picked from commit 0c915023db)
This commit is contained in:
parent
b44f0bd410
commit
3a9b3a8470
2 changed files with 0 additions and 5 deletions
|
|
@ -302,8 +302,6 @@ pmc_pmu_sample_rate_get(const char *event_name)
|
|||
event_name = pmu_alias_get(event_name);
|
||||
if ((pe = pmu_event_get(NULL, event_name, NULL)) == NULL)
|
||||
return (DEFAULT_SAMPLE_COUNT);
|
||||
if (pe->alias && (pe = pmu_event_get(NULL, pe->alias, NULL)) == NULL)
|
||||
return (DEFAULT_SAMPLE_COUNT);
|
||||
if (pe->event == NULL)
|
||||
return (DEFAULT_SAMPLE_COUNT);
|
||||
if (pmu_parse_event(&ped, pe->event))
|
||||
|
|
@ -526,8 +524,6 @@ pmc_pmu_pmcallocate(const char *event_name, struct pmc_op_pmcallocate *pm)
|
|||
event_name = pmu_alias_get(event_name);
|
||||
if ((pe = pmu_event_get(NULL, event_name, &idx)) == NULL)
|
||||
return (ENOENT);
|
||||
if (pe->alias && (pe = pmu_event_get(NULL, pe->alias, &idx)) == NULL)
|
||||
return (ENOENT);
|
||||
assert(idx >= 0);
|
||||
pm->pm_ev = idx;
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@
|
|||
*/
|
||||
struct pmu_event {
|
||||
const char *name;
|
||||
const char *alias;
|
||||
const char *event;
|
||||
const char *desc;
|
||||
const char *topic;
|
||||
|
|
|
|||
Loading…
Reference in a new issue