From 1d7a2bc4f51da5b21ad8a7d19c9bcf97286736d6 Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Fri, 30 Jun 2023 08:48:28 +0200 Subject: [PATCH] README.md: Mention how to use flamegraph script Signed-off-by: Daiki Ueno --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index aa2160f..8781442 100644 --- a/README.md +++ b/README.md @@ -190,6 +190,16 @@ To simply deserialize it, you can use the `cborseq2json.rb` script from [cbor-diag](https://github.com/cabo/cbor-diag) package, which can be installed with `gem install --user cbor-diag`. +From the tree output, a flamegraph can be produced with the +`scripts/flamegraph.py`: + +```console +$ crypto-auditing-log-parser audit.cborseq | python scripts/flamegraph.py - +dumping data to flamegraph.html +``` + +You can open the generated `flamegraph.html` with your browser. + ## License - `agent/src/bpf/audit.bpf.c`: GPL-2.0-or-later