open(): record private_data
Conflicts: kernel/syscall.c
This commit is contained in:
@ -268,6 +268,7 @@ long do_syscall(struct syscall_request *req, int cpu, int pid)
|
||||
req->rtid = cpu_local_var(current)->tid;
|
||||
req->ttid = 0;
|
||||
res.req_thread_status = IHK_SCD_REQ_THREAD_SPINNING;
|
||||
res.private_data = NULL;
|
||||
#ifdef POSTK_DEBUG_TEMP_FIX_26 /* do_syscall arg pid is not targetpid */
|
||||
send_syscall(req, cpu, target_pid, &res);
|
||||
#else /* POSTK_DEBUG_TEMP_FIX_26 */
|
||||
@ -477,6 +478,13 @@ long do_syscall(struct syscall_request *req, int cpu, int pid)
|
||||
}
|
||||
#endif // PROFILE_ENABLE
|
||||
|
||||
if (req->number == __NR_open && rc > 0) {
|
||||
if (res.private_data) {
|
||||
kprintf("%s: open fd: %d, private_data: 0x%lx\n",
|
||||
__FUNCTION__, rc, res.private_data);
|
||||
}
|
||||
}
|
||||
|
||||
monitor->status = mstatus;
|
||||
monitor->counter++;
|
||||
return rc;
|
||||
|
||||
Reference in New Issue
Block a user