diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms index b039e09817..98c166f397 100644 --- a/src/libvirt_private.syms +++ b/src/libvirt_private.syms @@ -2833,7 +2833,6 @@ virResctrlInfoNew; virResctrlMonitorAddPID; virResctrlMonitorCreate; virResctrlMonitorDeterminePath; -virResctrlMonitorGetCacheOccupancy; virResctrlMonitorGetID; virResctrlMonitorGetStats; virResctrlMonitorNew; diff --git a/src/util/virresctrl.c b/src/util/virresctrl.c index 80acb709ce..90b77e6959 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 ff49926b53..216a7302cd 100644 --- a/src/util/virresctrl.h +++ b/src/util/virresctrl.h @@ -240,10 +240,5 @@ virResctrlMonitorGetStats(virResctrlMonitorPtr monitor, virResctrlMonitorStatsPtr **stats, size_t *nstats); -int -virResctrlMonitorGetCacheOccupancy(virResctrlMonitorPtr monitor, - virResctrlMonitorStatsPtr **stats, - size_t *nstats); - void virResctrlMonitorStatsFree(virResctrlMonitorStatsPtr stats);