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

I want to automatically generate a /info file when the program ends. #1952

Open
m9rco opened this issue Aug 27, 2024 · 5 comments
Open

I want to automatically generate a /info file when the program ends. #1952

m9rco opened this issue Aug 27, 2024 · 5 comments

Comments

@m9rco
Copy link

m9rco commented Aug 27, 2024

I want to automatically generate a /info file when the program ends.

Why can't either of the following methods generate a /info file in the collection directory?

uftrace record --data=uftrace_196859 --auto-args --time --signal=SIGTERM@finish --signal=SIGKILL@finish app

Is there a way to stop collection and generate an info file when the program terminates?

@namhyung
Copy link
Owner

It should generate the info file when the target program terminates. Did you terminate your application by sending a signal, or did it exit normally?

@m9rco
Copy link
Author

m9rco commented Aug 30, 2024

I terminate the application through a signal. Currently, to correctly obtain the info file, I need to kill the process of gprep uftrace with kill -15.

@namhyung
Copy link
Owner

Oh, do you mean uftrace didn't stop or didn't generate the info file after your app finished? Or do you want to finish uftrace while your app is running?

@m9rco
Copy link
Author

m9rco commented Aug 31, 2024

Didn't generate the info file after my app finished

@namhyung
Copy link
Owner

namhyung commented Sep 1, 2024

That's strange.. what does it look like in the uftrace.data directory after your app finished? Do you see any *.sym files?

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