marcan changed the topic of #asahi to: Asahi Linux: porting Linux to Apple Silicon macs | General project discussion | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Topics: #asahi-dev #asahi-re #asahi-gpu #asahi-offtopic | Keep things on topic | Logs: https://alx.sh/l/asahi
bgb_ has quit [Ping timeout: 480 seconds]
quarkyalice has quit [Quit: Leaving]
quarkyalice has joined #asahi
bgb_ has joined #asahi
yuyichao has joined #asahi
PhilippvK has joined #asahi
phiologe has quit [Ping timeout: 480 seconds]
marvin24_ has joined #asahi
marvin24 has quit [Ping timeout: 480 seconds]
skali has joined #asahi
bgb_ has quit [Remote host closed the connection]
bgb_ has joined #asahi
Izumoo has quit [Quit: Konversation terminated!]
skali is now known as skali_
skali_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
skali has joined #asahi
skali has quit [Read error: Connection reset by peer]
VinDuv has joined #asahi
r0ni has quit [Ping timeout: 480 seconds]
VinDuv has quit [Quit: Leaving.]
skali has joined #asahi
aleasto has joined #asahi
user__ has joined #asahi
jehh has joined #asahi
skali is now known as skali_
skali_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
user__ has left #asahi [#asahi]
skali has joined #asahi
jehh has quit [Ping timeout: 480 seconds]
mindfreeze has joined #asahi
SallyAhaj has joined #asahi
skali is now known as skali_
skali_ is now known as skali
choozy has joined #asahi
opticron has quit [Ping timeout: 480 seconds]
yuyichao has quit [Ping timeout: 480 seconds]
skali is now known as skali_
skali_ is now known as skali
yuyichao has joined #asahi
aleasto has quit [Remote host closed the connection]
skali is now known as skali_
opticron has joined #asahi
al3xtjames5 has joined #asahi
al3xtjames has quit [Ping timeout: 480 seconds]
al3xtjames5 is now known as al3xtjames
choozy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
yuyichao has quit [Quit: Konversation terminated!]
Izumoo has joined #asahi
<bloom> I had a dream last night that the new iDevices could be bootloader unlocked by pressing the power button four times while booting up, at which point iBoot would give you a boot menu.
<bloom> I distinctly remember seeing GNOME running on an M1 iPad.
<bloom> Then I woke up. Now I have to go to work.
radex2 has quit [Quit: WeeChat 3.1]
radex has joined #asahi
skali_ is now known as skali
skali is now known as skali_
<Misthios> Sounds like a nice dream (except the gnome part)
artemist has quit [Quit: artemist]
aleasto has joined #asahi
artemist has joined #asahi
choozy has joined #asahi
minecrell has quit [Quit: Ping timeout (120 seconds)]
jkc_ has joined #asahi
jkc has quit [Quit: WeeChat 3.2]
minecrell has joined #asahi
Andalu30 has joined #asahi
VinDuv has joined #asahi
skali_ is now known as skali
<marcan> j_ey: so this is what I ended up with :-) https://github.com/AsahiLinux/m1n1/blob/main/proxyclient/m1n1/trace/asc.py
<marcan> I think it turned out quite pretty
<j_ey> yeah, I watched the stream :)
<j_ey> is https://github.com/AsahiLinux/m1n1/blob/main/proxyclient/m1n1/trace/asc.py#L14 some metaclass stuff that looks at its own properties?
<marcan> yes
<j_ey> probably https://github.com/AsahiLinux/m1n1/blob/cb6d1f58a2a40d258ad6705cbdee66696f5dbc58/proxyclient/m1n1/utils.py#L489 (Im just guessing, I dont know python well enough for these tricks!)
<marcan> correct :)
<j_ey> the Reloadable stuff is kinda spooky
<marcan> yeah it feels like a terrible idea and a great idea at the same time
<marcan> but damn does it work well (once I ironed out the kinks)
<j_ey> marcan: why is vm_hooks [None]?
<j_ey> 0 = RESERVED?
<marcan> 0 is the "internal" hook
<marcan> the one that actually handles all this
<marcan> originally I planned to have a table of hooks (the C side passes back an index into that) but trying to build it into this framework will run into issues with garbage in that list, since it is only ever appended to
<marcan> and it turns out I need to do a RangeMap lookup for every MMIO event anyway to find the observe-only ones anyway
<marcan> so there's no point in using a token to tell things apart at the SPTE level
<marcan> I still use that hook for non-Tracer clients, currently that PMGR hack, but that will probably go away
<j_ey> oh, so it's kinda a temporary workaround
<marcan> I'm likely to deprecate vm_hooks altogether yes
<roxfan> i remember seeing some Python disassembler using decorators, it looked pretty neat
<marcan> re that "is True" thing, backwards compat
<marcan> that used to be a bool trace (on/off)
<j_ey> marcan: I know, just wanted to be snarky :P
<marcan> anyway, off to sleep :)
<j_ey> marcan: ciao
<j_ey> im confused when that would be 0
<j_ey> Ooooh think I got it, https://github.com/AsahiLinux/m1n1/commit/990f5b3995f4b5594d0f27a2d8b34f8e3e50f971#diff-fae8ba41268463eb78bd26b34a696bc376c1910b51ad3a10ffe080bea4027631R267 here youre calling map_hook_idx with 0. so then data.id will be 0 and you will call handle_vm_hook_mapped and that works out what tracers/hooks to call based on the address
<roxfan> rubber duck debugging works
<j_ey> :)
skali is now known as skali_
alice[m] is now known as alicela1n
alicela1n has quit [Quit: authenticating]
alicela1n has joined #asahi
aleasto has quit [Remote host closed the connection]
Andalu30 has quit [Ping timeout: 480 seconds]
SallyAhaj has left #asahi [Leaving]
aleasto has joined #asahi
willy has joined #asahi
tertu has joined #asahi
VinDuv has quit [Quit: Leaving.]
choozy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
richbridger has joined #asahi
jkc_ is now known as jkc
aleasto has quit [Quit: Konversation terminated!]