[PATCH 0/2] fix ftrace initialization issue when a module is loaded

2015-12-24 Thread Qiu, PeiyangX
When a module is loaded, current ftrace initialization around the new module has some issues. 1) ftrace might race with insmod: Just after load_module calls ftrace_module_init to add ftrace records of the module, ftrace_run_update_code might jump in to change module codes. But load_module calls

[PATCH 0/2] fix ftrace initialization issue when a module is loaded

2015-12-24 Thread Qiu, PeiyangX
When a module is loaded, current ftrace initialization around the new module has some issues. 1) ftrace might race with insmod: Just after load_module calls ftrace_module_init to add ftrace records of the module, ftrace_run_update_code might jump in to change module codes. But load_module calls