def get_pids_of(self, process_name):
        # result should be a column of PIDs with the first row as "PID" header
        result = self.execute('ps -C {} -o pid'.format(process_name),  # NOQA
                              check_exit_code=False).strip().split()
        if len(result) >= 2:  # at least one row besides the header
            return map(int, result[1:])
        else:
            return []
Returns a list of PIDs of all processes with the specified name.
dataset/ETHPy150Open ARM-software/workload-automation/wlauto/common/linux/device.py/LinuxDevice.get_pids_of