tracing function with Graphviz


 
Thread Tools Search this Thread
Top Forums Programming tracing function with Graphviz
# 1  
Old 01-19-2009
tracing function with Graphviz

I was searching for a tool to trace the function flow to help me understand the code. I came across the article "visualize function calls with graphviz" by Tim Jones.
Visualize function calls with Graphviz

I was able to obtain the flow diagram for simple programs and also for the example program mentioned in the article.

But failed when tried to use for large project. I included instrument.c file in the Makefile under the list of source files to be compiled. instrument.o file was generated but trace.txt was not generated. Also included -g and -finstrument-functions..

CFLAGS = -g -finstrument-functions


Can anyone guide me, if you have used that tool...

Thanks,
Chandra
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. SuSE

GraphViz Help

I have a SLES 11(SP1) server that I am trying to install graphviz 2.28 on. Unfortunately that is not a comman combination, so I can't just use an RPM to install it, I have to build it from source. When doing so, when I configure it, I can't get it to recognize that pangocairo is actually... (4 Replies)
Discussion started by: cbo0485
4 Replies

2. Shell Programming and Scripting

Tracing a function call

Hi I am hoping someone can explain this to me as I am struggling to understand it. I had a problem today with needing to trace a ksh script that was dotting in a function that was writing to stdout. The problem was it was being run in a sub shell and the output was being parsed by the... (1 Reply)
Discussion started by: steadyonabix
1 Replies

3. Programming

Tracing Function Calls in a program

Apart from writing debug and statements in constructors is there any way by which we can trace the function call stack at any depth? The issue that we always face is that when program crashes (Web Server running on Linux) we have no idea where it crashes and we have to do the hard way of... (1 Reply)
Discussion started by: uunniixx
1 Replies

4. Shell Programming and Scripting

tracing in linux

hello every one can any one help me out i just want to trace what ever i am doing in linux 8.0 in the text mode to be saved in a text file so that at the end i can see my work what i have do. its just like oracle spool so you can see your work at the end . for example what ever command u gave... (2 Replies)
Discussion started by: shary
2 Replies

5. Linux

tracing

hello every one can any one help me out i just want to trace what ever i am doing in linux 8.0 in the text mode to be saved in a text file so that at the end i can see my work what i have do. its just like oracle spool so you can see your work at the end . for example what ever command u gave... (1 Reply)
Discussion started by: shary
1 Replies

6. SuSE

Installing graphviz

hi all, iam trying to install graphviz software on my linux box(suse linux). i downloaded rpm graphviz-2.9.20060521.0440-1.fc1.i386.rpm i'm using rpm --install graphviz-2.9.20060521.0440-1.fc1.i386.rpm but getting the errors warning: user ellson does not exist - using root warning: group... (1 Reply)
Discussion started by: wxwidgets
1 Replies
Login or Register to Ask a Question
dlclose(3)						     Library Functions Manual							dlclose(3)

NAME
dlclose - Close a dlopen() object SYNOPSIS
#include <dlfcn.h> int dlclose(void *handle) PARAMETERS
A pointer to a global symbol object that is returned from a call to dlopen(). DESCRIPTION
The dlclose function is used to inform the system that the object referenced by a handle returned from a previous dlopen() invocation is no longer needed by the application. The use of dlclose() reflects a statement of intent on the part of the process, but does not create any requirements on the dynamic library loader, such as removal of the code or symbols referenced by handle. Once an object has been closed using dlclose(), an application should assume that its symbols are no longer available to dlsym(). All objects loaded automatically as a result of invoking dlopen() on the refer- enced object are also closed. The dlclose function deallocates the address space for the library corresponding to handle. The results are undefined if any user function continues to call a symbol resolved in the address space of a library that has since been deallocated by dlclose. The dlclose operation will not remove an object to which references have been relocated, until or unless all such references are removed. For instance, an object that had been loaded with a dlopen() operation specifying the RTLD_GLOBAL flag might provide a target for dynamic relocations performed in the processing of other objects - in such environments, an application may assume that no relocation, once made, will be undone or remade unless the object requiring the relocation has itself been removed. RETURN VALUE
If the referenced object was successfully closed, dlclose() returns 0. If the object could not be closed or if handle does not refer to an open object, dlclose() returns a non-zero value. More detailed diagnostic information will be available through dlerror(). ERRORS
No errors are defined. NOTES
The dlopen and dlclose routines might dynamically change the resolution of certain symbols referenced by a program or its shared library dependencies. The dlopen routine might resolve symbols that were previously unresolved, and dlclose might cause resolved symbols to become unresolved or to be reresolved to a different symbol definition. A portable application will employ a handle returned from a dlopen() invocation only within a given scope bracketed by the dlopen() and dlclose() operations. The dynamic library loader is free to use reference counting or other techniques such that multiple calls to dlopen() referencing the same object may return the same object for handle. The dynamic library loader is also free to re-use a handle. For these reasons, the value of a handle must be treated as an opaque object by the application, used only in calls to dlsym() and dlclose(). RELATED INFORMATION
dlerror(3), dlopen(3), dlsym(3). delim off dlclose(3)