diff options
Diffstat (limited to 'drivers/connector/cn_proc.c')
-rw-r--r-- | drivers/connector/cn_proc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/connector/cn_proc.c b/drivers/connector/cn_proc.c index fcdf0fff13a6..969d2b4aaec0 100644 --- a/drivers/connector/cn_proc.c +++ b/drivers/connector/cn_proc.c | |||
@@ -56,6 +56,7 @@ void proc_fork_connector(struct task_struct *task) | |||
56 | msg = (struct cn_msg*)buffer; | 56 | msg = (struct cn_msg*)buffer; |
57 | ev = (struct proc_event*)msg->data; | 57 | ev = (struct proc_event*)msg->data; |
58 | get_seq(&msg->seq, &ev->cpu); | 58 | get_seq(&msg->seq, &ev->cpu); |
59 | getnstimestamp(&ev->timestamp); | ||
59 | ev->what = PROC_EVENT_FORK; | 60 | ev->what = PROC_EVENT_FORK; |
60 | ev->event_data.fork.parent_pid = task->real_parent->pid; | 61 | ev->event_data.fork.parent_pid = task->real_parent->pid; |
61 | ev->event_data.fork.parent_tgid = task->real_parent->tgid; | 62 | ev->event_data.fork.parent_tgid = task->real_parent->tgid; |
@@ -81,6 +82,7 @@ void proc_exec_connector(struct task_struct *task) | |||
81 | msg = (struct cn_msg*)buffer; | 82 | msg = (struct cn_msg*)buffer; |
82 | ev = (struct proc_event*)msg->data; | 83 | ev = (struct proc_event*)msg->data; |
83 | get_seq(&msg->seq, &ev->cpu); | 84 | get_seq(&msg->seq, &ev->cpu); |
85 | getnstimestamp(&ev->timestamp); | ||
84 | ev->what = PROC_EVENT_EXEC; | 86 | ev->what = PROC_EVENT_EXEC; |
85 | ev->event_data.exec.process_pid = task->pid; | 87 | ev->event_data.exec.process_pid = task->pid; |
86 | ev->event_data.exec.process_tgid = task->tgid; | 88 | ev->event_data.exec.process_tgid = task->tgid; |
@@ -114,6 +116,7 @@ void proc_id_connector(struct task_struct *task, int which_id) | |||
114 | } else | 116 | } else |
115 | return; | 117 | return; |
116 | get_seq(&msg->seq, &ev->cpu); | 118 | get_seq(&msg->seq, &ev->cpu); |
119 | getnstimestamp(&ev->timestamp); | ||
117 | 120 | ||
118 | memcpy(&msg->id, &cn_proc_event_id, sizeof(msg->id)); | 121 | memcpy(&msg->id, &cn_proc_event_id, sizeof(msg->id)); |
119 | msg->ack = 0; /* not used */ | 122 | msg->ack = 0; /* not used */ |
@@ -133,6 +136,7 @@ void proc_exit_connector(struct task_struct *task) | |||
133 | msg = (struct cn_msg*)buffer; | 136 | msg = (struct cn_msg*)buffer; |
134 | ev = (struct proc_event*)msg->data; | 137 | ev = (struct proc_event*)msg->data; |
135 | get_seq(&msg->seq, &ev->cpu); | 138 | get_seq(&msg->seq, &ev->cpu); |
139 | getnstimestamp(&ev->timestamp); | ||
136 | ev->what = PROC_EVENT_EXIT; | 140 | ev->what = PROC_EVENT_EXIT; |
137 | ev->event_data.exit.process_pid = task->pid; | 141 | ev->event_data.exit.process_pid = task->pid; |
138 | ev->event_data.exit.process_tgid = task->tgid; | 142 | ev->event_data.exit.process_tgid = task->tgid; |
@@ -165,6 +169,7 @@ static void cn_proc_ack(int err, int rcvd_seq, int rcvd_ack) | |||
165 | msg = (struct cn_msg*)buffer; | 169 | msg = (struct cn_msg*)buffer; |
166 | ev = (struct proc_event*)msg->data; | 170 | ev = (struct proc_event*)msg->data; |
167 | msg->seq = rcvd_seq; | 171 | msg->seq = rcvd_seq; |
172 | getnstimestamp(&ev->timestamp); | ||
168 | ev->cpu = -1; | 173 | ev->cpu = -1; |
169 | ev->what = PROC_EVENT_NONE; | 174 | ev->what = PROC_EVENT_NONE; |
170 | ev->event_data.ack.err = err; | 175 | ev->event_data.ack.err = err; |