-
Notifications
You must be signed in to change notification settings - Fork 77
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
trace stream does not match query #22
Comments
-c filtering doesn't work anymore since the kernel added page table
isolation, because there are multiple page tables per process.
You can either boot with nopti or avoid using -c
|
but I bootet with nopti (see the very first line I postet: [0.000000] Command line: BOOT_IMAGE=/vmlinuz-4.19.0-kali1-amd64 root=/dev/mapper/kali--vg-root ro quiet nopti). thats why I am surprised its not working, but working when I use perf |
Just confirming that I see the same thing as vanhauser-thc. I'm using kernel 5.1.14 on an i3-8121U, and have booted with "nopti". The suggested sample code for sptcmd using -c always results in the error "trace stream does not match query" when I run sptdecode. Using sptcmd without -c gives me apparently mostly results from sptdecode, but still interspersed with occasional inline "trace stream does not match query" errors. |
Same problems for me: kernel 5.1.15 and CPU i5-8250U. |
Same problem for me . I 'm using Ubuntu 18.04 |
Hello, |
My question is exactly the same as yours. Did you solve this problem? |
I am seeing this issue as well. Looking at the code, I found that this error being hit in pt_insn_event
process_event is normally set in event_pending, but in the error case it hits this case and returns without setting this flag
|
@prasun3 maybe send andi a pull request with a fix? |
I'm not sure what the fix or even the root cause is. Hoping this provides some insight to others more familiar with the code. |
I assume when you hexdump the stream it will be all zeroes. I think the problem is that the PTI kernel puts a PCID into CR3, but simple-pt doesn't know about, so the CR3 filter never matches. Some variant of #29 would likely fix it. For now I would just not use the CR3 filter. |
try this patch |
I have a current kernel, booted with nopti, inet_pt is supported and built from the current github state:
to show that the issue is present with the example commands in the README:
and this happens for any command. the kernel module is present.
when I unload the kernel module and use perf I get stuff (and perf report shows branches etc.):
any idea what the issue could be?
thanks!
The text was updated successfully, but these errors were encountered: