Python script: trace and visualize a function call
$10-30 USD
Selesai
Disiarkan hampir 5 tahun yang lalu
$10-30 USD
Dibayar semasa penghantaran
It's needed a phyton script that tracks a specified function tru its calls till the star/main call in a c project.
The project has multiple modules, each of them has moultiple c files having a known namming convention(eg. mod1-main/mod1_main.c, mod2-start/mod2_entry.c, etc).
Dummy example:
module: mod2-start , file: mod2_entry.c :
void mod2_sendByte1ToMain(void)
{
mod1_receiveByte1();
}
void mod2_start(void)
{
mod2_sendByte1ToMain();
}
module: mod2-main , file: mod2_main.c :
void mod2_main_call_fct(void)
{
mod1_call_start();
}
module: mod1-main , file: mod1_main.c :
void mod1_receiveByte1(void)
{
// function to track
}
void mod1_call_start(void)
{
mod2_start();
}
int mod1_main(void)
{
mod2_main_call_fct();
}
This function call track should be loged into a file in plantuml format([login to view URL]).
eg. we call the script with a function as an arg:
[login to view URL] mod1_receiveByte1
in the log file we should have something like this(this can be your proposal):
------------------------------------------------------------------------------------------------
"mod1-main" -> "mod2-start" : mod2_sendByte1ToMain(void)
note left : mod1_receiveByte1
"mod2-start" -> "mod2-start" : mod2_start(void)
"mod2-start" -> "mod1-main" : mod1_call_start(void)
"mod1-main" -> "mod2-main" : mod2_main_call_fct(void)
"mod2-main" -> "mod1-main" : mod1_main(void)
----------------------------------------------------------------------------------------------
Hi! How are you?
I am python Expert.
I can help you.
I can deliver your tasks with great quality
If you believe me and I will do my best for you.
Please check my profile and message me for more details.
Thanks