-
Notifications
You must be signed in to change notification settings - Fork 165
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
Potential adjustments to helpers/linux/printk.py
#368
Comments
Hi! This would be nice to add as an option to drgn's |
Well, yes and no - it's not there directly, but can be derived as To give you some idea, this is how we get boot time in the project I'm collaborating on:
|
Hello,
Recently I implemented a
dmesg -T
(print human readable timestamps) to a project I'm collaborating on and originally followed what the comment says:However, I started to wonder whether
drgn
would be interested in having such functionality?My current implementation (see excerpt below) has some caveats which might be undesirable for
drgn
as backend-lib, namely:-) importing of
datetime
andtimezone
fromdatetime
python lib-) needing to be supplied with a
boot_time
integer, ideally in form of "seconds since epoch"But if there would be interest from
drgn
to have this, we can discuss how to approach it. Please let me know. :)Note this is not an Issue in particular, but just asking whether to spend time on preparing and opening a potential PR.
Thanks and regards,
-Vratislav
The text was updated successfully, but these errors were encountered: