Re: Question about sched_setaffinity()

From: Steven Rostedt
Date: Wed May 01 2019 - 15:17:13 EST


On Wed, 1 May 2019 12:12:13 -0700
"Paul E. McKenney" <paulmck@xxxxxxxxxxxxx> wrote:


> OK, what I did was to apply the patch at the end of this email to -rcu
> branch dev, then run rcutorture as follows:
>
> nohup tools/testing/selftests/rcutorture/bin/kvm.sh --cpus 8 --duration 2 --configs "TRIVIAL" --bootargs "trace_event=sched:sched_switch,sched:sched_wakeup ftrace=function_graph ftrace_graph_filter=sched_setaffinity,migration_cpu_stop"
>
> This resulted in the console output that I placed here:
>
> http://www2.rdrop.com/~paulmck/submission/console.log.gz
>
> But I don't see calls to sched_setaffinity() or migration_cpu_stop().
> Steve, is something else needed on the kernel command line in addition to
> the following?
>
> ftrace=function_graph ftrace_graph_filter=sched_setaffinity,migration_cpu_stop

Do you have function graph enabled in the config?

[ 2.098303] ftrace bootup tracer 'function_graph' not registered.


-- Steve