Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dump: Skip nodes during graphviz dump
Browse files Browse the repository at this point in the history
If a node is marked as True in the skip variable, the dump file will
not record that node.

Signed-off-by: Daon Park <[email protected]>
deepseafishy committed Oct 29, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 8d47c7f commit 7e089cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmds/dump.c
Original file line number Diff line number Diff line change
@@ -1258,8 +1258,9 @@ static void print_graph_to_graphviz(struct uftrace_graph_node *node, struct uftr
{
struct uftrace_graph_node *child;
unsigned long n_calls = node->nr_calls;
bool skip = node->skip;

if (n_calls) {
if (n_calls && !skip) {
struct uftrace_graph_node *parent = node->parent;

pr_out(" ");

0 comments on commit 7e089cd

Please sign in to comment.