-
Notifications
You must be signed in to change notification settings - Fork 210
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
WIP: Bluetooth tracing #192
base: main
Are you sure you want to change the base?
Conversation
Heh, looks like you ran into some of the same missing instructions @asahilina ran into... can you rebase the HV stuff and see if any of your changes are still needed there? (FWIW for them to be correct you'd have had to expand the Python side too, but that's done now). |
Signed-off-by: R <[email protected]>
Signed-off-by: R <[email protected]>
Signed-off-by: R <[email protected]>
also add an alignment hack Signed-off-by: R <[email protected]>
Signed-off-by: R <[email protected]>
Signed-off-by: R <[email protected]>
Signed-off-by: R <[email protected]>
Signed-off-by: R <[email protected]>
Signed-off-by: R <[email protected]>
rebased, no HV changes seem to be required anymore |
@@ -712,7 +712,8 @@ def reboot(self): | |||
def write64(self, addr, data): | |||
'''write 8 byte value to given address''' | |||
if addr & 7: | |||
raise AlignmentError() | |||
self.write32(addr, data & 0xFFFFFFFF) | |||
self.write32(addr + 4, data >> 32) |
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.
What codepath is this used in? I'd prefer to keep the alignment fault '(at least by default) since this is usually a mistake when accessing registers, though I know Apple loves using unaligned 64-bit fields in some protocols. Can we make it a separate wrapper in ProxyUtils, a subclass, or something like that?
06224ed
to
88b1866
Compare
f0edbd9
to
50c808d
Compare
4f95305
to
95d67cf
Compare
TL;DR this can successfully capture Bluetooth HCI commands being transported across the (seemingly) Apple-custom PCIe pipe interface
Known issues: