mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
video: rockchip: mpp: add session extra info for debug
current->pid may be the same for different sessions in one thread. Change-Id: Iac6ee4c641d63cbd3e883861d339eb2d540d3118 Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
This commit is contained in:
@@ -1529,8 +1529,8 @@ int mpp_time_diff(struct mpp_task *task)
|
||||
struct mpp_dev *mpp = task->session->mpp;
|
||||
|
||||
do_gettimeofday(&end);
|
||||
mpp_debug(DEBUG_TIMING, "%s: pid:%d time: %ld us\n",
|
||||
dev_name(mpp->dev), task->session->pid,
|
||||
mpp_debug(DEBUG_TIMING, "%s: pid: %d, session: %p, time: %ld us\n",
|
||||
dev_name(mpp->dev), task->session->pid, task->session,
|
||||
(end.tv_sec - task->start.tv_sec) * 1000000 +
|
||||
(end.tv_usec - task->start.tv_usec));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user