-
Notifications
You must be signed in to change notification settings - Fork 16
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 Compass doesn't show tracing_mark_write event although it is present in trace file #193
Comments
Hi Felix, I would like to help, but I would like a trace to test. I have not seen this issue yet. Also, ftrace updates the format, maybe we are out of date. Can you share a trace like this? |
Hi Matthew, thank you for offering your help. What is your preferred way of receiving the trace? I figured posting it in this thread would clutter it up. Hence, I'm asking. Thank you in advance! |
Edit: I forgot to mention that I started |
Ok, in that case, you're already good. Regarding the trace format, I think putting a zip in this issue is great for persistence. Can you make a smaller trace? |
I have found a partial solution for my problem. When exporting a different, shorter The I have written a test program that writes 10 times to the trace marker. The source for that is also included in the zip. For this trace, there is no discrepancy in the amount of events between loading the binary or the ascii format. |
Since Github only allows 25MB uploads, you'll have to create the ascii file of the long program yourself. Thanks in advance! |
I will check it out... disclaimer, I will be on winter holidays soon. But I should respond, if not slowly. |
No worries, same goes for me ^^ |
Hello, returning from winter break, I have continued my research and can share some new ideas. One interesting thing I have learned is when filtering a ASCII trace file for printing events, storing the subsequent output and reading it into Trace Compass, I can read the text I have written to the trace marker without any issues. However, the problem with the limited amount of events Trace Compass can load from an ASCII trace file still is a problem I couldn't resolve. Is there anything in the ftrace parser preventing files over a certain file size to be read in completely? |
Okay, it seems as if I have finally found the bug, and it seems to be with the parsing. I'm sure the actual fix isn't all too big as everything that needs to be adjusted will most likely just be a RegEx. I would like to do the fix myself, but I don't know where to find the actual parser code. If anybody could point me in the correct direction, I'd appreciate that :) |
Hi, I am looking into the traces.. I am sorry for the long delay. The issue is in After some programmatic checks, I see that the binary parsing is missing ONE event in 1782764... I will investigate further, I think there are two bugs now. Parsing the txt file fails at event 640. Parsing the binary is missing one event. |
No worries, Matthew, thank you for your help 🙂 Yes, the number of events when loading the ASCII version of the |
Hello everybody,
I have encountered a potential bug/error while trying to analyse an ftrace generated with trace-cmd.
![grafik](https://private-user-images.githubusercontent.com/44095720/393321191-c43914b2-6d4f-4234-8162-9e839a206b2b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNzk1MDAsIm5iZiI6MTczOTE3OTIwMCwicGF0aCI6Ii80NDA5NTcyMC8zOTMzMjExOTEtYzQzOTE0YjItNmQ0Zi00MjM0LTgxNjItOWU4MzlhMjA2YjJiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDA5MjAwMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTlhMjI1MzRhMjZkMGFlNzU0MTBlNmE1Y2YwMTM4ZjI2OThiNzQxZTVjMDAwYjQzOGY0OGMyZWNiNDIzMzc1NmQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.QVP6beA27LhOOSbqn6JMaqUDB6swg_doWj-8MRfD8ds)
The generated trace.dat contains the tracing_mark_write event and is correctly displayed by Kernelshark, as can be seen from the screenshot below:
The same element in Trace Compass is displayed this way:
![grafik](https://private-user-images.githubusercontent.com/44095720/393321442-669fb724-afa3-4bf4-b75d-11a3bee83475.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNzk1MDAsIm5iZiI6MTczOTE3OTIwMCwicGF0aCI6Ii80NDA5NTcyMC8zOTMzMjE0NDItNjY5ZmI3MjQtYWZhMy00YmY0LWI3NWQtMTFhM2JlZTgzNDc1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDA5MjAwMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTUxODlhZGRkNzcyMDVmZDY3ODZlZjQzYTA4NmFkODFiNWZjOGE3ZDY3Njc0NTY1MzA0ZTExYjZiYjVjNjAxYzEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.4VTHpGJPK3USzw3Oztf5xpdZXn3IkLkOZSss0qSr5O4)
The trace was generated by invoking the executable with the following program:
If you need further information for assistance, I will provide it.
Best regards,
Felix Kuhlmann
The text was updated successfully, but these errors were encountered: