From e365410e367c284147f3bf622cc8d36f94c5dff5 Mon Sep 17 00:00:00 2001 From: Wu Zhangjin Date: Fri, 20 Mar 2015 09:57:37 +0800 Subject: [PATCH] callgraph: Rename calltree to callgraph Signed-off-by: Wu Zhangjin --- Makefile | 7 +++---- {calltree => callgraph}/.gitignore | 0 {calltree => callgraph}/Makefile | 0 tools/{calltree.sh => callgraph} | 4 ++-- 4 files changed, 5 insertions(+), 6 deletions(-) rename {calltree => callgraph}/.gitignore (100%) rename {calltree => callgraph}/Makefile (100%) rename tools/{calltree.sh => callgraph} (95%) diff --git a/Makefile b/Makefile index 3bec343..f908feb 100644 --- a/Makefile +++ b/Makefile @@ -96,7 +96,7 @@ clean: @make clean -C rootfs @rm -f images/Image images/kernel.map tmp_make core boot/bootsect boot/setup @rm -f init/*.o images/kernel.sym boot/*.o typescript* info bochsout.txt - @make clean -C calltree + @make clean -C callgraph @for i in mm fs kernel lib boot; do make clean -C $$i; done info: @make clean @@ -207,9 +207,8 @@ endif bochs-clean: @make clean -C tools/bochs/bochs-2.3.7 -cg: callgraph -callgraph: - @tools/calltree.sh $(f) $(d) +cg: + @tools/callgraph $(f) $(d) help: @echo "<<<>>" diff --git a/calltree/.gitignore b/callgraph/.gitignore similarity index 100% rename from calltree/.gitignore rename to callgraph/.gitignore diff --git a/calltree/Makefile b/callgraph/Makefile similarity index 100% rename from calltree/Makefile rename to callgraph/Makefile diff --git a/tools/calltree.sh b/tools/callgraph similarity index 95% rename from tools/calltree.sh rename to tools/callgraph index 511c05b..bbd506f 100755 --- a/tools/calltree.sh +++ b/tools/callgraph @@ -1,6 +1,6 @@ #!/bin/bash # -# calltree.sh -- Generate a calltree of a specified function in specified file/directory +# callgraph -- Generate a callgraph of a specified function in specified file/directory # # -- Based on cflow and tree2dotx # @@ -17,7 +17,7 @@ fi tree2dotx=${TOP_DIR}/tree2dotx # Output directory -OUT_DIR=calltree +OUT_DIR=callgraph PIC_TYPE=svg if [ "x$OS" == "xDarwin" ]; then BROWSER=/Applications/Safari.app/Contents/MacOS/Safari