Add slave proc_diskio handler.

This commit is contained in:
Benoit Dejean
2017-02-25 16:29:26 +01:00
parent afec9bbf58
commit 07abbd2dfe

View File

@@ -209,6 +209,14 @@ handle_slave_command (glibtop_command *cmnd, glibtop_response *resp,
resp->offset = _offset_data (proc_time);
break;
#endif
#if GLIBTOP_SUID_PROC_DISKIO
case GLIBTOP_CMND_PROC_DISKIO:
memcpy (&pid, parameter, sizeof (pid_t));
glibtop_get_proc_diskio_p
(server, &resp->u.data.proc_diskio, pid);
resp->offset = _offset_data (proc_time);
break;
#endif
#if GLIBTOP_SUID_PROC_SIGNAL
case GLIBTOP_CMND_PROC_SIGNAL:
memcpy (&pid, parameter, sizeof (pid_t));