Hi,
I've tried to modify your code in order to print, in the log file, the core in which threads run at every loop.
In "run" function I inserted this :
ldata->cpu = atoi(tdata->curr_cpu_data->cpuset_str);
and this in "thread_body":
curr_timing->cpu = ldata.cpu;
I also modified data structures, to insert "cpu" field.
I thought the current core information was in the "curr_cpu_data" variable, but printing it I got a different core from the ftrace trace file.
I'd like to ask you if the information about the core in which threads run at every loop are stored somewhere in yout code.
Hi, I've tried to modify your code in order to print, in the log file, the core in which threads run at every loop. In "run" function I inserted this :
ldata->cpu = atoi(tdata->curr_cpu_data->cpuset_str);
and this in "thread_body":curr_timing->cpu = ldata.cpu;
I also modified data structures, to insert "cpu" field.I thought the current core information was in the "curr_cpu_data" variable, but printing it I got a different core from the ftrace trace file.
I'd like to ask you if the information about the core in which threads run at every loop are stored somewhere in yout code.
Many thanks for the help.