Skip to content

Commit

Permalink
Add note and example
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcnski committed Sep 21, 2023
1 parent 9d6d172 commit 9d822ab
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions polkadot/scripts/list-syscalls/list-syscalls.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@

# A script to statically list syscalls used by a given binary.
#
# Syntax: list-syscalls.rb <binary> [--only-used-syscalls]
# Syntax: list-syscalls.rb <binary> [--only-used-syscalls]
#
# Author: @koute
# Source: https://gist.github.com/koute/166f82bfee5e27324077891008fca6eb
# NOTE: For accurate results, build the binary with musl and LTO enabled.
# Example: ./polkadot/scripts/list-syscalls/list-syscalls.rb target/x86_64-unknown-linux-musl/production/polkadot-prepare-worker --only-used-syscalls
#
# Author: @koute
# Source: https://gist.github.com/koute/166f82bfee5e27324077891008fca6eb

require 'shellwords'
require 'set'
Expand Down

0 comments on commit 9d822ab

Please sign in to comment.