Change-Id: I8eebb9c69929aaf29c24b194c96f7ba8e5a9f99e
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
list_for_each_entry(fl, &proc->filter_list, list)
func(fl, data);
}
+
+static void is_send_event(struct sspt_filter *f, void *data)
+{
+ bool *is_send = (bool *)data;
+
+ if (!*is_send && f->pfg_is_inst)
+ *is_send = !!pfg_msg_cb_get(f->pfg);
+}
+
+bool sspt_proc_is_send_event(struct sspt_proc *proc)
+{
+ bool is_send = false;
+
+ sspt_proc_on_each_filter(proc, is_send_event, (void *)&is_send);
+
+ return is_send;
+}
void (*func)(struct sspt_filter *, void *),
void *data);
+bool sspt_proc_is_send_event(struct sspt_proc *proc);
+
#endif /* __SSPT_PROC__ */
*/
static int us_filter(struct task_struct *task)
{
- return !!sspt_proc_get_by_task(task);
+ struct sspt_proc *proc;
+
+ proc = sspt_proc_get_by_task(task);
+ if (proc)
+ return sspt_proc_is_send_event(proc);
+
+ return 0;
}
static struct ev_filter ev_us_filter = {