Skip to content

chore: make full tracing default, drop -d/-m/-x options, add -s single OP option#115

Open
taodd wants to merge 2 commits into
mainfrom
chore/cleanup-osdtrace-help-message
Open

chore: make full tracing default, drop -d/-m/-x options, add -s single OP option#115
taodd wants to merge 2 commits into
mainfrom
chore/cleanup-osdtrace-help-message

Conversation

@taodd
Copy link
Copy Markdown
Owner

@taodd taodd commented May 27, 2026

This pull request streamlines osdtrace's options and changes the default tracing behavior to better fit user requirements:

Summary of Changes

  1. Default Tracing Mode:

    • Changed the default probe mode to Full OPs (OP_FULL_PROBE), which captures all OSD operational latencies and prints detailed per-event row traces.
  2. Obsolete Option Removal:

    • Removed -d <seconds>, -m <avg|max>, and -x options completely from command line arguments and getopt parser.
    • Removed the obsolete average and max summary latency aggregation logic (handle_avg()) along with its variables and structures to keep the codebase clean.
  3. Single Mode Selection:

    • Introduced -s option to allow users to selectively trigger Single OP probe mode (logging PrimaryLogPG::log_op_stats only) now that full mode is active by default.
  4. Help Banner & Functional Tests:

    • Streamlined the -h help banner and updated all affected functional tests (functional-test-cephadm-rgw.sh, functional-test-embedded-dwarf.sh, and functional-test-microceph.sh) to remove the now-obsolete -x option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant