Re: [PATCH] kthread: Add kthread_work tracepoints

2020-10-12 Thread Steven Rostedt
On Mon, 12 Oct 2020 08:14:50 -0700 Rob Clark wrote: > > DEFINE_EVENT(sched_kthread_work_execute_template, > > sched_kthread_work_execute_start, > > TP_PROTO(struct kthread_work *work), > > TP_ARGS(work)); > > > > DEFINE_EVENT(sched_kthread_work_execute_template, > > sched_kthrea

Re: [PATCH] kthread: Add kthread_work tracepoints

2020-10-12 Thread Rob Clark
On Mon, Oct 12, 2020 at 6:59 AM Steven Rostedt wrote: > > On Sat, 10 Oct 2020 11:03:22 -0700 > Rob Clark wrote: > > > /** > > + * sched_kthread_work_execute_start - called immediately before the work > > callback > > + * @work:pointer to struct kthread_work > > + * > > + * Allows to track kt

Re: [PATCH] kthread: Add kthread_work tracepoints

2020-10-12 Thread Steven Rostedt
On Sat, 10 Oct 2020 11:03:22 -0700 Rob Clark wrote: > /** > + * sched_kthread_work_execute_start - called immediately before the work > callback > + * @work:pointer to struct kthread_work > + * > + * Allows to track kthread work execution. > + */ > +TRACE_EVENT(sched_kthread_work_execute_sta

[PATCH] kthread: Add kthread_work tracepoints

2020-10-10 Thread Rob Clark
From: Rob Clark While migrating some code from wq to kthread_worker, I found that I missed the execute_start/end tracepoints. So add similar tracepoints for kthread_work. And for completeness, queue_work tracepoint (although this one differs slightly from the matching workqueue tracepoint). Si