mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 19:41:16 +00:00
util: Add interface for adding PID to the monitor
Add interface for adding task PID to the monitor. Signed-off-by: Wang Huaqiang <huaqiang.wang@intel.com> Reviewed-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
parent
575a32f63f
commit
5a7c336b4a
@ -2681,6 +2681,7 @@ virResctrlInfoGetCache;
|
||||
virResctrlInfoGetMonitorPrefix;
|
||||
virResctrlInfoMonFree;
|
||||
virResctrlInfoNew;
|
||||
virResctrlMonitorAddPID;
|
||||
virResctrlMonitorDeterminePath;
|
||||
virResctrlMonitorNew;
|
||||
|
||||
|
@ -2529,3 +2529,11 @@ virResctrlMonitorDeterminePath(virResctrlMonitorPtr monitor,
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
virResctrlMonitorAddPID(virResctrlMonitorPtr monitor,
|
||||
pid_t pid)
|
||||
{
|
||||
return virResctrlAddPID(monitor->path, pid);
|
||||
}
|
||||
|
@ -197,4 +197,8 @@ virResctrlMonitorNew(void);
|
||||
int
|
||||
virResctrlMonitorDeterminePath(virResctrlMonitorPtr monitor,
|
||||
const char *machinename);
|
||||
|
||||
int
|
||||
virResctrlMonitorAddPID(virResctrlMonitorPtr monitor,
|
||||
pid_t pid);
|
||||
#endif /* __VIR_RESCTRL_H__ */
|
||||
|
Loading…
Reference in New Issue
Block a user