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

Thanks #1

Open
alex-bender opened this issue Nov 4, 2017 · 4 comments
Open

Thanks #1

alex-bender opened this issue Nov 4, 2017 · 4 comments

Comments

@alex-bender
Copy link

Hello!
Just want to say thanks for such a good program (small, fast and efficient)
and want to ask one question:
How can I launch every program with liftoff?
I want to collect some process statistic.

Thanks

@skuenzer
Copy link
Member

skuenzer commented Nov 6, 2017

Hey,
thanks for your feedback. Regarding your question: What do you mean with every program? I am not sure that I get what you want to achieve. In principle, every process execution that you want to observe has to be launched by liftoff: liftoff [liftoff arguments]... -- [program] [program arguments]...

@alex-bender
Copy link
Author

I'd like to have any kind of database (csv file, sqlite, mysql ...) filled with statistics from liftoff
so I wouldn't bother to run single command with liftoff.
Something like https://github.com/andrewkroh/go-ebpf but without these heavy kernel dependencies.
Maybe some shell hooks?

@skuenzer
Copy link
Member

Hi @alex-bender. First of all, I am really sorry for the reply years later, this got somehow lost. I like your suggestion and it might be a useful feature to have for certain situations. Assuming you are able to instrument your shell or kernel in a way that every process creation is encapsulated by liftoff, as you say, adding a library to write to a shared database file could make this work. Whenever the process execution finished, you would write the result to the database. Did you ever try implementing something like this?

@alex-bender
Copy link
Author

Hey! Don't be sorry. Way too much information nowadays, it's easy to get flooded with it.
I'm not to strong in system programming, neither in C, so it's somewhat hard for me to solve, but maybe some LD_PRELOAD tricks could be used for that? or some injection into the shell itself? So track each process fork\creation?

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

2 participants