-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create-diff-object: tracepoint & jump label fixes
The current approach of trying to include the tracepoint-related sections doesn't work at all. The new tracepoints don't show up in "perf list". And also, with one patch (issue #219) I've seen a panic in jump_label_del_module(). I suspect it's because the kernel is confused by dynamic relocations' changing of the jump table after it was registered with the jump table code. I think the best approach for now is to just always exclude these sections. It should be harmless, with the only consequence being that tracepoints and jump labels can't be enabled in patched functions (which is already the case with the current code anyway). Fixes #221.
- Loading branch information
Showing
2 changed files
with
32 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Index: src/net/core/dev.c | ||
=================================================================== | ||
--- src.orig/net/core/dev.c | ||
+++ src/net/core/dev.c | ||
@@ -3609,6 +3609,7 @@ ncls: | ||
case RX_HANDLER_PASS: | ||
break; | ||
default: | ||
+ printk("BUG!\n"); | ||
BUG(); | ||
} | ||
} |