Skip to content

[FEATURE] Support env configs as option in bpftime cli tool #331

@yunwei37

Description

@yunwei37

Is your feature request related to a problem? Please describe.

Currently the runtime has a lot of configurations, see:

https://eunomia.dev/bpftime/documents/usage/#configurations-for-runtime

However, the cli tool doesn't support them.

Describe the solution you'd like

We want a clear and easy way to let user know there is config for bpftime, in cli options and help info:

For example,

bpftime load --memory-size=1024 example/malloc

is equal to set env var BPFTIME_SHM_MEMORY_MB=1024

The help info should also add link to https://eunomia.dev/bpftime , e.g.

 --no-jit           Same as BPFTIME_DISABLE_JIT, disable JIT and use intepreter

For more infomation and options, please see https://eunomia.dev/bpftime

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions