Skip to content
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

[2025 Project 2] Why is the BMv2 event logger capability not enough for packet trace? #28

Open
qobilidop opened this issue Feb 28, 2025 · 2 comments
Assignees

Comments

@qobilidop
Copy link
Member

Context: https://github.com/p4lang/gsoc/blob/main/2025/ideas_list.md Project 2

As @antoninbas pointed out in the email:

Note that project 2 sounds quite similar to an existing capability of bmv2: https://github.com/p4lang/behavioral-model/blob/main/include/bm/bm_sim/event_logger.h. Messages can be generated for "key" events and "streamed" over multiple possible transports. So I hope this capability can be studied first and then refined instead of building a brand new alternative.

@matthewtlam @jonathan-dilorenzo Any thoughts on this?

@qobilidop qobilidop assigned qobilidop and matthewtlam and unassigned qobilidop Feb 28, 2025
@matthewtlam
Copy link
Collaborator

matthewtlam commented Feb 28, 2025

@antoninbas My understanding to this project would be creating a class to parse and organize the event logger's messages as a packet trace class. I believe the goal is to not have to manually go through all the BMv2 logs as a user

@jonathan-dilorenzo correct me if I am wrong

@antoninbas
Copy link
Member

@matthewtlam there are console text logs and then there are structured event logs. The project idea is only referring to the former, while I referred to the latter in my comment above. Unlike the "console" logs, event logs are only generated for key events such as table lookups. In my mind, the project should be about improving this existing mechanism, e.g. by adding the ability to generate these event messages in Protobuf format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants