diff options
| author | Jakub Kicinski <kuba@kernel.org> | 2026-03-09 17:53:37 -0700 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-03-10 19:33:00 -0700 |
| commit | d6df5e9b2a565be08330e46a8a615aac9ed8711b (patch) | |
| tree | c42567f99ee9fe10b9c7404e651253ee90c9c888 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 77a6401a8722be20ea8db98ac900c93ccc7068ff (diff) | |
tools: ynl: cli: add --policy support
Add --policy flag which can be combined with --do or --dump to query
the kernel's netlink policy for an operation instead of executing it.
Examples:
$ ynl --family netdev --do dev-get --policy
{'ifindex': {'max-value': 4294967295, 'min-value': 1, 'type': 'u32'}}
$ ynl --family ethtool --do channels-get --policy --output-json
{"header": {"type": "nested", "policy": {"dev-index": ...}}}
$ ynl --family netdev --dump dev-get --policy
{}
Link: https://patch.msgid.link/20260310005337.3594225-6-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
