mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-18 12:06:08 +00:00
instruments/trace_cmd: Allow setting top_buffer_size
Allow optionally setting the top level ftrace buffer size separately from the devlib buffer size. The parameter will be passed to the devlib FtraceCollector and take effect there. Signed-off-by: Kajetan Puchalski <kajetan.puchalski@arm.com>
This commit is contained in:
parent
d67d9bd2a4
commit
b113a8b351
@ -125,6 +125,13 @@ class TraceCmdInstrument(Instrument):
|
|||||||
value by going down from the specified size in
|
value by going down from the specified size in
|
||||||
``buffer_size_step`` intervals.
|
``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,
|
Parameter('buffer_size_step', kind=int, default=1000,
|
||||||
global_alias='trace_buffer_size_step',
|
global_alias='trace_buffer_size_step',
|
||||||
description="""
|
description="""
|
||||||
@ -168,6 +175,7 @@ class TraceCmdInstrument(Instrument):
|
|||||||
events=self.events,
|
events=self.events,
|
||||||
functions=self.functions,
|
functions=self.functions,
|
||||||
buffer_size=self.buffer_size,
|
buffer_size=self.buffer_size,
|
||||||
|
top_buffer_size=self.top_buffer_size,
|
||||||
buffer_size_step=1000,
|
buffer_size_step=1000,
|
||||||
automark=False,
|
automark=False,
|
||||||
autoreport=True,
|
autoreport=True,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user