Skip to content

Commit 9a95334

Browse files
Update README.md
1 parent bb97581 commit 9a95334

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

sbuild/README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,30 @@ produce_callgraph: <package>: failed: [missing deb|empty|fcan]
5757
produce_callgraph: <package>: success
5858
```
5959

60+
Produce Fasten Call Graphs
61+
--------------------------
62+
63+
To produce call graphs for Debian C packages in
64+
[Fasten's format](https://github.com/fasten-project/fasten/wiki/Extended-Revision-Call-Graph-format#c),
65+
you should use the `schaliasos/sbuild-cscout` image.
66+
For example, to produce the call graph for the package `zlib1g-dev` of
67+
Debian buster release and for amd64 architecture, you should
68+
analyze the source of `zlib`.
69+
You should use the following command.
70+
71+
```
72+
docker run -it --rm --privileged -v $(pwd)/callgraphs:/callgraphs \
73+
schaliasos/sbuild-cscout sbuild --apt-update --no-apt-upgrade \
74+
--no-apt-distupgrade --batch --stats-dir=/var/log/sbuild/stats \
75+
--dist=buster --arch=amd64 zlib
76+
```
77+
78+
The call graph will be generated in the following file.
79+
80+
```
81+
callgraphs/zlib/buster/1\:1.2.11.dfsg-1/amd64/zlib1g-dev/fcg.json
82+
```
83+
6084
Images in Dockerhub
6185
-------------------
6286

0 commit comments

Comments
 (0)