提交 89ef1589 编写于 作者: M Michal Privoznik

Drop virPerfGetEventFd

This function is not used anywhere. Moreover, the code that would
use lives in virperf.c and therefore has access to the FD anyway.
Well, for instance virPerfReadEvent is doing just that.
Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
上级 43395f19
...@@ -2083,7 +2083,6 @@ virPerfEventIsEnabled; ...@@ -2083,7 +2083,6 @@ virPerfEventIsEnabled;
virPerfEventTypeFromString; virPerfEventTypeFromString;
virPerfEventTypeToString; virPerfEventTypeToString;
virPerfFree; virPerfFree;
virPerfGetEventFd;
virPerfNew; virPerfNew;
virPerfReadEvent; virPerfReadEvent;
......
...@@ -241,16 +241,6 @@ bool virPerfEventIsEnabled(virPerfPtr perf, ...@@ -241,16 +241,6 @@ bool virPerfEventIsEnabled(virPerfPtr perf,
return event->enabled; return event->enabled;
} }
int virPerfGetEventFd(virPerfPtr perf,
virPerfEventType type)
{
virPerfEventPtr event = virPerfGetEvent(perf, type);
if (event == NULL)
return false;
return event->fd;
}
int int
virPerfReadEvent(virPerfPtr perf, virPerfReadEvent(virPerfPtr perf,
virPerfEventType type, virPerfEventType type,
...@@ -299,15 +289,6 @@ virPerfEventIsEnabled(virPerfPtr perf ATTRIBUTE_UNUSED, ...@@ -299,15 +289,6 @@ virPerfEventIsEnabled(virPerfPtr perf ATTRIBUTE_UNUSED,
return false; return false;
} }
int
virPerfGetEventFd(virPerfPtr perf ATTRIBUTE_UNUSED,
virPerfEventType type ATTRIBUTE_UNUSED)
{
virReportSystemError(ENXIO, "%s",
_("Perf not supported on this platform"));
return -1;
}
int int
virPerfReadEvent(virPerfPtr perf ATTRIBUTE_UNUSED, virPerfReadEvent(virPerfPtr perf ATTRIBUTE_UNUSED,
virPerfEventType type ATTRIBUTE_UNUSED, virPerfEventType type ATTRIBUTE_UNUSED,
......
...@@ -51,9 +51,6 @@ int virPerfEventDisable(virPerfPtr perf, ...@@ -51,9 +51,6 @@ int virPerfEventDisable(virPerfPtr perf,
bool virPerfEventIsEnabled(virPerfPtr perf, bool virPerfEventIsEnabled(virPerfPtr perf,
virPerfEventType type); virPerfEventType type);
int virPerfGetEventFd(virPerfPtr perf,
virPerfEventType type);
int virPerfReadEvent(virPerfPtr perf, int virPerfReadEvent(virPerfPtr perf,
virPerfEventType type, virPerfEventType type,
uint64_t *value); uint64_t *value);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册