chenyueqi / SLAKE

34 stars 11 forks source link

About the implementation of panic_xxx function #3

Open windhl opened 2 years ago

windhl commented 2 years ago

Hi, yueqi,

Thanks a lot for opening source your framework code and I learn lots from them 👍 I am really insteresting about the instrumentation of panic_xxx functions. However, I find only the declaration in your gcc_plugin_xx.c. I wonder if I miss something in the source code and can you help me to find out it?

Thanks agagin.

Liang

chenyueqi commented 2 years ago

Hi windhl,

Sorry for the late reply cuz I am on a Christmas break. Thanks for your interest, panic_xxx functions should be implemented as part of kernel source code, when GCC compiles the kernel, the plugin will instrument panic_xxx functions so that the linker can do its job.

Let me know if you have other questions.

windhl commented 2 years ago

Thanks for your reply, yueqi! I think the idea and implementation of inserting stop-anchors, I.e., the panic_xxx, is great and it may be the footstone of Slake. Do you have the plan to open source the related code?

Anyway thanks a lot for your reply!

chenyueqi commented 2 years ago

probably will release a diff patch for this. Thanks for your reminder.

windhl commented 2 years ago

probably will release a diff patch for this. Thanks for your reminder.

Thanks a lot for your work and code!