| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This project is a collection of tools to extract runtime data from several interpreters and runtimes. By runtime data, we mean information about the execution of a program, especially stack unwinding and profiling.
make bootstrapsudo apt-get install qemu binfmt-support qemu-user-static # Install the qemu packages
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes # This step will execute the registering scripts
docker run --rm -t arm64v8/ubuntu uname -mpackage python
import (
"fmt"
"github.com/parca-dev/runtime-data/pkg/python"
)
func main() {
layouts, err := python.GetLayouts()
if err != nil {
return fmt.Errorf("get python layouts: %w", err)
}
fmt.Println(layouts)
}package ruby
import (
"fmt"
"github.com/parca-dev/runtime-data/pkg/ruby"
)
func main() {
layouts, err := ruby.GetLayouts()
if err != nil {
return fmt.Errorf("get ruby layouts: %w", err)
}
fmt.Println(layouts)
}Under the cmd directory, you can find the following tools:
structlayout: Extracts the memory layout using the given map (a struct annotated with certain struct tags). mergelayout: Merges the given layouts into groups of layouts.
usage: structlayout [flags] <path-to-elf>
e.g: structlayout -r python -v 3.9.5 /usr/bin/python3.9
flags:
-o string
output directory to write the layout file (shorthand)
-output string
output directory to write the layout file
-r string
name of the pre-defined runtime, e.g. python, ruby, libc, musl (shorthand)
-runtime string
name of the pre-defined runtime, e.g. python, ruby, libc, musl
-v string
version of the runtime that the layout to generate, e.g. 3.9.5 (shorthand)
-version string
version of the runtime that the layout to generate, e.g. 3.9.5usage: mergelayout -o outputDir <path-to-layout-files>
e.g: mergelayout -o /tmp/merged '/tmp/python/*.yaml'
flags:
-o string
output directory to write the merged layout file (shorthand)
-output string
output directory to write the merged layout fileNAME
debdownload
FLAGS
-o, --output STRING output directory to write the downloaded deb files
-t, --temp-dir STRING temporary directory to download deb files
-u, --url STRING URL to download deb files from
-p, --package STRING package name to download
-a, --arch STRING architectures to download
-c, --constraint STRING version constraints to download
NAME
apkdownload
FLAGS
-o, --output STRING output directory to write the downloaded apk files (default: tmp/bin)
-t, --temp-dir STRING temporary directory to download deb files (default: tmp/apk)
-u, --url STRING URL to download apk files from
-p, --package STRING package name to download
-a, --arch STRING architectures to download
-c, --constraint STRING version constraints to download
NAME
debdownload
FLAGS
-d, --debuginfo-dir STRING directory to write the downloaded debuginfo files
| Back | FazBrowse Home | New Git URL |