@ljs btw, have you seen this hacky weekend hobby project thing I built a while ago yet?
https://mehlbrei.thejh.net/thread?msgid=20241108135708.48567-1-lorenzo.stoakes%40oracle.com#topic-0
You can put in some messageid of a patch series that exists on lore and it'll show you all the review comments from that series inline in the original patches.
@ljs
*tips hat*
All thanks to the ridiculously powerful python standard library. I was like "how do I compare two mails and figure out which lines in the reply map to which lines in the original mail" and the python standard library is like "here's an email parser and here's a thing that compares sequences of things and tells you how they match up", and at that point the hardest part was fixing all the off-by-one bugs in my code...
But as I said, hacky hobby project, it will fall over and refuse to show anything on some threads, and it does not understand the various ways in which people write "I removed some lines here" markers and it can't deal with partially quoted lines and stuff...
@ljs I was kind of trying to imitate "real" code review tools. If it had "show more context lines" buttons and a way to draft and send replies, I think it would be really nice...
@ljs (ah, and the security of it is also pretty trashy, unlike tools like b4 it makes no effort to actually verify the identities of mail senders)
@ljs @sj yeah, email review is a pain, this was created when I was wondering how close to something looking like a real code review tool you could get while using email as the backend... though that is probably making things harder than necessary.
re physical memory viewer: so you want to see something like, a graphical live view of physical memory at the 4K page level? and basically want a faster version of kpageflags? I guess an alternate approach would be to get initial state from kpageflags and then basically use ftrace to log alloc/free operations and try to keep up with that firehose from userspace, but that might be unrealistic under load...
(wanting to have a graphical memory viewer reminds me of something I once did for Chrome's userspace memory allocator, screenshots are at https://drive.google.com/drive/folders/1IqPKAmayTwqAHZkWuLa15OYNdPP-Awir?usp=sharing - that was only really usable on monitors with sufficiently high resolution ^^)
@ljs @sj ... you know, if you are doing this as root anyway, and you build your kernel without the annoying strict devmem config flag, you can just mmap() basically-arbitrary physical memory by calling mmap() on /dev/mem. including freed memory, slab memory, whatever, thanks to the magic of pfnmap.
So if you can somehow figure out where in physical memory the memmap is, you could just mmap the whole thing and look at every `struct page` directly from userspace...