Skip to content

Commit

Permalink
One more time
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Applencourt committed Sep 7, 2023
1 parent 7a32471 commit b952fae
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 8 deletions.
28 changes: 21 additions & 7 deletions utils/babeltrace_thapi.in
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ def get_components(names)
'source.ctf.lttng_live' => BT2::BTPlugin.find('ctf').get_source_component_class_by_name('lttng-live'),
'filter.utils.muxer' => BT2::BTPlugin.find('utils').get_filter_component_class_by_name('muxer'),
'sink.text.pretty' => BT2::BTPlugin.find('text').get_sink_component_class_by_name('pretty'),
'sink.text.details' => BT2::BTPlugin.find('text').get_sink_component_class_by_name('details'),
'sink.ctf.fs' => BT2::BTPlugin.find('ctf').get_sink_component_class_by_name('fs'),
'sink.utils.dummy' => BT2::BTPlugin.find('utils').get_sink_component_class_by_name('dummy'),
}
Expand Down Expand Up @@ -268,9 +269,6 @@ subcommands = {
exit
end

opts.on('--live', 'Enable live display of the trace') do
$options[:live] = true
end
end,
'live2aggreg' =>
OptionParser.new do |opts|
Expand All @@ -285,14 +283,28 @@ subcommands = {
$options[:output] = output
end
end,
'tally' =>
'live2details' =>
OptionParser.new do |opts|
opts.banner = 'Usage: tally [OPTIONS] trace_directory...'
opts.banner = 'Usage: live2aggreg [OPTIONS]'
common_options(opts)

opts.on('--live', 'Enable live display of the trace') do
$options[:live] = true
opts.on('--inputs=INPUTS') do |inputs|
$options[:inputs] = [inputs]
end
end,
'live2dummy' =>
OptionParser.new do |opts|
opts.banner = 'Usage: live2aggreg [OPTIONS]'
common_options(opts)

opts.on('--inputs=INPUTS') do |inputs|
$options[:inputs] = [inputs]
end
end,
'tally' =>
OptionParser.new do |opts|
opts.banner = 'Usage: tally [OPTIONS] trace_directory...'
common_options(opts)

$options_tally.each do |k, (t, _)|
opts.on("--#{k}=VALUE", t) do |v|
Expand Down Expand Up @@ -337,6 +349,8 @@ thapi_graph = { 'tally' => ['source.ctf.fs', 'filter.utils.muxer', 'filter.inter
'trace' => ['source.ctf.fs', 'filter.utils.muxer', 'sink.text.rubypretty'],
'live2aggreg' => ['source.ctf.lttng_live', 'filter.utils.muxer', 'filter.intervals.interval',
'filter.btx_aggreg.aggreg', 'sink.ctf.fs'],
'live2details' => ['source.ctf.lttng_live', 'sink.text.details'],
'live2dummy' => ['source.ctf.lttng_live', 'sink.utils.dummy'],
'aggreg2tally' => ['source.ctf.fs', 'filter.btx_aggreg.aggreg', 'sink.btx_tally.tally'] }

graph = BT2::BTGraph.new
Expand Down
2 changes: 1 addition & 1 deletion xprof/xprof.sh.erb.in
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ trace_and_summary_live() {
# Run the binary
trap 'trace_epilogue_live' EXIT SIGABRT SIGSEGV
preload_lib_tracers
"$@"
LTTNG_UST_ALLOW_BLOCKING=1 "$@"
}


Expand Down

0 comments on commit b952fae

Please sign in to comment.