Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Benjamin J. Thompson
Tor
Commits
283be00b
Commit
283be00b
authored
7 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Patches
Plain Diff
Add support for running "calltool" on Tor via "make callgraph".
Closes #19307.
parent
8421756d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
Makefile.am
+4
-0
4 additions, 0 deletions
Makefile.am
changes/19037
+7
-0
7 additions, 0 deletions
changes/19037
scripts/maint/run_calltool.sh
+29
-0
29 additions, 0 deletions
scripts/maint/run_calltool.sh
with
41 additions
and
0 deletions
.gitignore
+
1
−
0
View file @
283be00b
...
...
@@ -70,6 +70,7 @@ uptime-*.json
/Tor*Bundle.dmg
/tor-*-win32.exe
/coverage_html/
/callgraph/
# /contrib/
/contrib/dist/tor.sh
...
...
This diff is collapsed.
Click to expand it.
Makefile.am
+
4
−
0
View file @
283be00b
...
...
@@ -224,6 +224,10 @@ check-changes:
update-versions
:
$(
PERL
)
$(
top_builddir
)
/scripts/maint/updateVersions.pl
.PHONY
:
callgraph
callgraph
:
$(
top_builddir
)
/scripts/maint/run_calltool.sh
version
:
@
echo
"Tor @VERSION@"
@
if
test
-d
"
$(
top_srcdir
)
/.git"
&&
test
-x
"
`
which git 2>&1
;
true
`
"
;
then
\
...
...
This diff is collapsed.
Click to expand it.
changes/19037
0 → 100644
+
7
−
0
View file @
283be00b
o Minor features (development support):
- Developers can now generate a call-graph for Tor using the
"calltool" python program, which post-processes object dumps. It
should work okay on many Linux and OSX platforms, and might work
elsewhere too. To run this, install calltool from
https://gitweb.torproject.org/user/nickm/calltool.git and run
"make callgraph". Closes ticket 19307.
This diff is collapsed.
Click to expand it.
scripts/maint/run_calltool.sh
0 → 100755
+
29
−
0
View file @
283be00b
#!/bin/sh
# You can find calltool at https://gitweb.torproject.org/user/nickm/calltool.git
set
-e
if
test
"x
$CALLTOOL_PATH
"
!=
"x"
;
then
PYTHONPATH
=
"
${
CALLTOOL_PATH
}
:
${
PYTHONPATH
}
"
export
PYTHONPATH
fi
mkdir
-p
callgraph
SUBITEMS
=
"fn_invgraph fn_scc fn_scc_weaklinks module_graph module_invgraph module_scc module_scc_weaklinks"
for
calculation
in
$SUBITEMS
;
do
echo
"========
$calculation
"
python
-m
calltool
$calculation
>
callgraph/
$calculation
done
echo
<<
EOF
> callgraph/README
This directory holds output from calltool, as run on Tor. For more
information about each of these files, see the NOTES and README files in
the calltool distribution.
You can find calltool at
https://gitweb.torproject.org/user/nickm/calltool.git
EOF
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment