diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms index e325168e539f7ba3cee067e998c6b56fe8fcf2c5..333bf7c8b2db8f050ed640e6ad8b3fc52579c83d 100644 --- a/src/libvirt_private.syms +++ b/src/libvirt_private.syms @@ -2083,7 +2083,6 @@ virPerfEventIsEnabled; virPerfEventTypeFromString; virPerfEventTypeToString; virPerfFree; -virPerfGetEventFd; virPerfNew; virPerfReadEvent; diff --git a/src/util/virperf.c b/src/util/virperf.c index 450b3baf2a1f636accf4bb54e64ff3c775874cfc..a0997f94b1661edb82f6d7e503e0e86ff559a137 100644 --- a/src/util/virperf.c +++ b/src/util/virperf.c @@ -241,16 +241,6 @@ bool virPerfEventIsEnabled(virPerfPtr perf, return event->enabled; } -int virPerfGetEventFd(virPerfPtr perf, - virPerfEventType type) -{ - virPerfEventPtr event = virPerfGetEvent(perf, type); - if (event == NULL) - return false; - - return event->fd; -} - int virPerfReadEvent(virPerfPtr perf, virPerfEventType type, @@ -299,15 +289,6 @@ virPerfEventIsEnabled(virPerfPtr perf ATTRIBUTE_UNUSED, return false; } -int -virPerfGetEventFd(virPerfPtr perf ATTRIBUTE_UNUSED, - virPerfEventType type ATTRIBUTE_UNUSED) -{ - virReportSystemError(ENXIO, "%s", - _("Perf not supported on this platform")); - return -1; -} - int virPerfReadEvent(virPerfPtr perf ATTRIBUTE_UNUSED, virPerfEventType type ATTRIBUTE_UNUSED, diff --git a/src/util/virperf.h b/src/util/virperf.h index 769e85a2faa35949a1c6eb07905dca7fa9f68d4d..716341019be1cf12a3d15da24e6125122ab72052 100644 --- a/src/util/virperf.h +++ b/src/util/virperf.h @@ -51,9 +51,6 @@ int virPerfEventDisable(virPerfPtr perf, bool virPerfEventIsEnabled(virPerfPtr perf, virPerfEventType type); -int virPerfGetEventFd(virPerfPtr perf, - virPerfEventType type); - int virPerfReadEvent(virPerfPtr perf, virPerfEventType type, uint64_t *value);