Signed-off-by: Wang Huaqiang <huaqiang.wang(a)intel.com>
---
src/libvirt_private.syms | 1 -
src/util/virresctrl.c | 29 -----------------------------
src/util/virresctrl.h | 5 -----
3 files changed, 35 deletions(-)
diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
index 2e3d48c..41733cc 100644
--- a/src/libvirt_private.syms
+++ b/src/libvirt_private.syms
@@ -2769,7 +2769,6 @@ virResctrlMonitorAddPID;
virResctrlMonitorCreate;
virResctrlMonitorDeterminePath;
virResctrlMonitorFreeStats;
-virResctrlMonitorGetCacheOccupancy;
virResctrlMonitorGetID;
virResctrlMonitorGetStats;
virResctrlMonitorNew;
diff --git a/src/util/virresctrl.c b/src/util/virresctrl.c
index 76a8d02..640941c 100644
--- a/src/util/virresctrl.c
+++ b/src/util/virresctrl.c
@@ -2795,32 +2795,3 @@ virResctrlMonitorFreeStats(virResctrlMonitorStatsPtr *stats,
}
}
}
-
-
-/*
- * virResctrlMonitorGetCacheOccupancy
- *
- * @monitor: The monitor that the statistic data will be retrieved from.
- * @stats: Array of virResctrlMonitorStatsPtr for receiving cache occupancy
- * data. Caller is responsible to free this array.
- * @nstats: A size_t pointer to hold the returned array length of @caches
- *
- * Get cache or memory bandwidth utilization information.
- *
- * Returns 0 on success, -1 on error.
- */
-
-int
-virResctrlMonitorGetCacheOccupancy(virResctrlMonitorPtr monitor,
- virResctrlMonitorStatsPtr **stats,
- size_t *nstats)
-{
- char **features = NULL;
- int ret = -1;
-
- virStringListAdd(&features, "llc_occupancy");
- ret = virResctrlMonitorGetStats(monitor, (const char**)features, stats, nstats);
- virStringListFree(features);
-
- return ret;
-}
diff --git a/src/util/virresctrl.h b/src/util/virresctrl.h
index d1905b0..ab12ebf 100644
--- a/src/util/virresctrl.h
+++ b/src/util/virresctrl.h
@@ -241,11 +241,6 @@ virResctrlMonitorGetStats(virResctrlMonitorPtr monitor,
virResctrlMonitorStatsPtr **stats,
size_t *nstats);
-int
-virResctrlMonitorGetCacheOccupancy(virResctrlMonitorPtr monitor,
- virResctrlMonitorStatsPtr **stats,
- size_t *nstats);
-
void
virResctrlMonitorFreeStats(virResctrlMonitorStatsPtr *stats,
size_t nstats);
--
2.7.4