Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

instruments/trace_cmd: Allow setting top_buffer_size #1226

Merged
merged 1 commit into from
Aug 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions wa/instruments/trace_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,13 @@ class TraceCmdInstrument(Instrument):
value by going down from the specified size in
``buffer_size_step`` intervals.
"""),
Parameter('top_buffer_size', kind=int, default=None,
global_alias='trace_top_buffer_size',
description="""
The same as buffer_size except it sets the size of the
top-level buffer instead of the devlib one. If left unset,
it will default to the same as the devlib buffer size.
"""),
Parameter('buffer_size_step', kind=int, default=1000,
global_alias='trace_buffer_size_step',
description="""
Expand Down Expand Up @@ -168,6 +175,7 @@ def initialize(self, context):
events=self.events,
functions=self.functions,
buffer_size=self.buffer_size,
top_buffer_size=self.top_buffer_size,
buffer_size_step=1000,
automark=False,
autoreport=True,
Expand Down
Loading