You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 10, 2024. It is now read-only.
Is your feature request related to a problem? Please describe.
Support for user probes (uprobes) was recently introduced in trace-cruncher. Uprobe is ftrace functionality for tracing user space functions. Trace-cruncher can attach uprobes to any function from given elf binary. The only limitation is that the binary must not be stripped, as trace-cruncher uses the elf symbol table to get the offset within the binary file of the traced functions. There is examples/user_trace.py which demonstrates how to use these APIs. However, this functionality is not covered by the unit tests.
Describe the solution you'd like
Implement a simple, hello world type of program in C/C++/Golang/Java or whatever language you choose, that will be compiled to an executable elf binary. The source code of that program should be in the tests directory and should be compiled before the tests are executed.
Implement a uprobes unit test, that will trace the execution of that simple program. Compare if the traces match to the execution flow of the actual functions from the program.
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Support for user probes (uprobes) was recently introduced in trace-cruncher. Uprobe is ftrace functionality for tracing user space functions. Trace-cruncher can attach uprobes to any function from given elf binary. The only limitation is that the binary must not be stripped, as trace-cruncher uses the elf symbol table to get the offset within the binary file of the traced functions. There is
examples/user_trace.py
which demonstrates how to use these APIs. However, this functionality is not covered by the unit tests.Describe the solution you'd like
hello world
type of program in C/C++/Golang/Java or whatever language you choose, that will be compiled to an executable elf binary. The source code of that program should be in thetests
directory and should be compiled before the tests are executed.Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: