summaryrefslogtreecommitdiff
path: root/rust/alloc/collections/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorCosta Shulyupin <costa.shul@redhat.com>2025-11-24 08:31:46 +0200
committerTomas Glozar <tglozar@redhat.com>2026-01-07 15:57:15 +0100
commita08e012e814d346c191726a877b18901c3bc204f (patch)
tree60ccad42ef4e94396c5ad67dbefcbb98fa30fc0b /rust/alloc/collections/git@git.tavy.me:linux.git
parentc219d4ee1d63b772d5fa8ed453b9cec18a9e2f6a (diff)
tools/rtla: Add common_usage()
The rtla tools have significant code quadruplication in their usage functions. Each tool implements its own version of the same help text formatting and option descriptions, leading to maintenance overhead and inconsistencies. Documentation/tools/rtla/common_options.rst lists 14 common options. Add common_usage() infrastructure to consolidate help formatting. Subsequent patches will extend this to handle other common options. The refactored output is almost identical to the original, with the following changes: - add square brackets to specify optionality: `usage: [rtla] ...` - remove `-q` from timerlat hist because hist tools don't support it - minor spacing Signed-off-by: Costa Shulyupin <costa.shul@redhat.com> Link: https://lore.kernel.org/r/20251124063204.845425-1-costa.shul@redhat.com Signed-off-by: Tomas Glozar <tglozar@redhat.com>
Diffstat (limited to 'rust/alloc/collections/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions