Skip to content

Commit ffb3f9a

Browse files
committed
start-agent-task: kernel-patches-fixes
1 parent 536eadb commit ffb3f9a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Make the following changes in codetracer/kernel_patches.rb
2+
3+
1) Instead of storing the original methods in @@original_methods, just use alias_method
4+
in reverse to restore the originals
5+
6+
2) To avoid polluting the global namespace, instead of using names such
7+
as old_p and old_puts, use names such as codetracer_original_p, codetracer_original_puts.
8+
9+
In `test/test_kernel_patches.rb`, make sure that the original methods are restored
10+
when the last tracer is uninstalled.

0 commit comments

Comments
 (0)