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

pkg/encoder: make customized syscalls printers portable and add open/openat #900

Merged
merged 2 commits into from Apr 11, 2023

Conversation

mtardy
Copy link
Member

@mtardy mtardy commented Apr 7, 2023

Also rename the output for fd_install to fd_install instead of open and change the default emoji for unrecognized symbols since previous emoji was shifting alignment.

@mtardy mtardy added kind/enhancement This improves or streamlines existing functionality arch/arm64 arm64 issues labels Apr 7, 2023
@mtardy mtardy requested a review from jrfastab April 7, 2023 17:16
@mtardy mtardy requested a review from a team as a code owner April 7, 2023 17:16
@@ -184,13 +184,27 @@ func (p *CompactEncoder) EventToString(response *tetragon.GetEventsResponse) (st
}
return CapTrailorPrinter(fmt.Sprintf("%s %s %s %v", event, processInfo, file, bytes), caps), nil
case "fd_install":
event := p.Colorer.Blue.Sprintf("📬 %-7s", "open")
event := p.Colorer.Blue.Sprintf("📬 %-7s", "fd_install")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We dd this intentionally with the idea that fd_install is the correct hook to monitor for file "open" events.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

put this in its own PR if we want to debate this. Then we can merge the rest of this more or less now.

Signed-off-by: Mahe Tardy <mahe.tardy@gmail.com>
@mtardy mtardy force-pushed the pr/mtardy/tetra-encoder branch 2 times, most recently from 5f58468 to 2404a87 Compare April 11, 2023 13:43
Rename the output for fd_install to fd_install instead of open and
change the default emoji for unrecognized symbols since previous emoji
was shifting alignment.

Signed-off-by: Mahe Tardy <mahe.tardy@gmail.com>
@mtardy mtardy merged commit ab0082c into main Apr 11, 2023
18 checks passed
@mtardy mtardy deleted the pr/mtardy/tetra-encoder branch April 11, 2023 14:44
@mtardy mtardy mentioned this pull request Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch/arm64 arm64 issues kind/enhancement This improves or streamlines existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants