Signed-off-by: Wang Huaqiang <huaqiang.wang(a)intel.com>
---
src/libvirt_private.syms | 1 -
src/util/virresctrl.c | 27 ---------------------------
src/util/virresctrl.h | 5 -----
3 files changed, 33 deletions(-)
diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
index 3a4f526..96de17e 100644
--- a/src/libvirt_private.syms
+++ b/src/libvirt_private.syms
@@ -2769,7 +2769,6 @@ virResctrlInfoNew;
virResctrlMonitorAddPID;
virResctrlMonitorCreate;
virResctrlMonitorDeterminePath;
-virResctrlMonitorGetCacheOccupancy;
virResctrlMonitorGetID;
virResctrlMonitorGetStats;
virResctrlMonitorNew;
diff --git a/src/util/virresctrl.c b/src/util/virresctrl.c
index 80acb70..90b77e6 100644
--- a/src/util/virresctrl.c
+++ b/src/util/virresctrl.c
@@ -2790,30 +2790,3 @@ virResctrlMonitorStatsFree(virResctrlMonitorStatsPtr stat)
VIR_FREE(stat->vals);
VIR_FREE(stat);
}
-
-
-/*
- * 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)
-{
- int ret = -1;
- const char *features[2] = {"llc_occupancy", NULL};
-
- ret = virResctrlMonitorGetStats(monitor, features, stats, nstats);
-
- return ret;
-}
diff --git a/src/util/virresctrl.h b/src/util/virresctrl.h
index 9ef51b7..cdfe205 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
virResctrlMonitorStatsFree(virResctrlMonitorStatsPtr stats);
--
2.7.4