]> git.baikalelectronics.ru Git - kernel.git/commit
x86/tracing: comment need for atomic nop
authorSteven Rostedt <srostedt@redhat.com>
Thu, 10 Sep 2009 21:22:44 +0000 (17:22 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Thu, 10 Sep 2009 21:22:44 +0000 (17:22 -0400)
commit8f0dbacf717076f945aa681466ef875434979bf2
treef657ece9cd7b0e8f6a0151dc8c4eee1266f2a109
parentb4082ec11fb4690ae84f3e87a5d54390a4ef4d75
x86/tracing: comment need for atomic nop

The dynamic function tracer relys on the macro P6_NOP5 always being
an atomic NOP. If for some reason it is changed to be two operations
(like a nop2 nop3) it can faults within the kernel when the function
tracer modifies the code.

This patch adds a comment to note that the P6_NOPs are expected to
be atomic. This will hopefully prevent anyone from changing that.

Reported-by: Mathieu Desnoyer <mathieu.desnoyers@polymtl.ca>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
arch/x86/include/asm/nops.h