__NR_gettid: use regular offloading channel (fixes unknown PID bug)

This commit is contained in:
Balazs Gerofi
2016-10-15 11:46:01 +09:00
parent d2b677b6da
commit b88d75720f
2 changed files with 11 additions and 6 deletions

View File

@@ -501,9 +501,10 @@ int mcexec_syscall(struct mcctrl_usrdata *ud, struct ikc_scd_packet *packet)
ppd = mcctrl_get_per_proc_data(ud, pid);
if (unlikely(!ppd)) {
kprintf("%s: ERROR: no per-process structure for PID %d??\n",
__FUNCTION__, task_tgid_vnr(current));
return 0;
kprintf("%s: ERROR: no per-process structure for PID %d, "
"syscall nr: %d\n",
__FUNCTION__, pid, packet->req.number);
return -1;
}
dprintk("%s: (packet_handler) rtid: %d, ttid: %d, sys nr: %d\n",