-
Notifications
You must be signed in to change notification settings - Fork 140
lkl: hijack: move dbg_handler out of liblkl #585
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
flagging as draft as it's an API breakage... if we want to retain a signal-based debug hook then maybe it'd make sense to add a callback parameter instead, e.g. |
dbg_handler exposes a very useful debug shell, but it's currently only used (within tools/lkl at least) by hijack and zpoline. Move the functionality into liblkl-hijack, to slightly trim down the liblkl core library. This may break external lkl_register_dbg_handler() callers. Signed-off-by: David Disseldorp <[email protected]>
dbg_entrance() is only called via the SIGTSTP signal handler setup in lkl_register_dbg_handler(). Signed-off-by: David Disseldorp <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I am not too concerned with this API change. @thehajime any thoughts?
v2:
|
@ddiss @tavip I just wish to know the motivation part of this patch; do we have an impact on trimming down the size of core library ?
I was wondering what motivates you to prepare this patch, as this introduces the API breakage (as you mentioned), we may not know the user of our library (liblkl.so) who uses this feature. |
Thanks for the review.
I don't have a strong motivation for this one. Aside from the small size reduction, I was mostly considering ongoing maintenance and mainlining, where a simpler API should help. |
thanks for the description. I'm fine to merge this. We can revert (or refactor) it if somebody tells it. |
dbg_handler exposes a very useful debug shell, but it's currently only used (within tools/lkl at least) by hijack.
Move the functionality into liblkl-hijack, to slightly trim down the liblkl core library.
This may break external lkl_register_dbg_handler() callers.