diff options
| author | Simone Weiß <simone.weiss@elektrobit.com> | 2024-04-15 14:30:03 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2024-04-22 08:46:42 +0000 |
| commit | 36c961ad9dc0e5b72efc784a57717424a02bfa00 (patch) | |
| tree | da60380de7d0a95724187e8d4866071503d81ce1 /tools | |
| parent | af24b0505c748561efb50f1d03c824d6642f6c0b (diff) | |
tools/syz-db: add more usage info for syz-db
Add some short notes on how syz-db can also be used manually.
Signed-off-by: Simone Weiß <simone.weiss@elektrobit.com>
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/syz-db/syz-db.go | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/tools/syz-db/syz-db.go b/tools/syz-db/syz-db.go index 8d261307a..47ecc62bb 100644 --- a/tools/syz-db/syz-db.go +++ b/tools/syz-db/syz-db.go @@ -73,11 +73,24 @@ func main() { } func usage() { - fmt.Fprintf(os.Stderr, "usage:\n") - fmt.Fprintf(os.Stderr, " syz-db pack dir corpus.db\n") - fmt.Fprintf(os.Stderr, " syz-db unpack corpus.db dir\n") - fmt.Fprintf(os.Stderr, " syz-db merge dst-corpus.db add-corpus.db* add-prog*\n") - fmt.Fprintf(os.Stderr, " syz-db bench corpus.db\n") + fmt.Fprintf(os.Stderr, `usage: syz-db can be used to manipulate corpus +databases that are used by syz-managers. The following generic arguments are +offered: + -arch string + -os string + -version uint + -vv int + + they can be used for: + packing a database: + syz-db pack dir corpus.db + unpacking a database. A file containing performed syscalls will be returned: + syz-db unpack corpus.db dir + merging databases. No additional file will be created: The first file will be replaced by the merged result: + syz-db merge dst-corpus.db add-corpus.db* add-prog* + running a deserialization benchmark: + syz-db bench corpus.db +`) os.Exit(1) } |
