Skip to content

Commit

Permalink
archive name
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Applencourt committed Jul 23, 2024
1 parent 7da4147 commit 7d3fa8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions utils/babeltrace_thapi.in
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def get_and_add_components(graph, names, l_inputs)
when 'source.ctf.lttng_archive'
graph.add(comp, 'source_archive',
params: { 'session-name' => $options[:archive],
'session-found-file-path' => $options[:'session-found-file-path'] })
'session-found-file-path' => $options[:'archive-session-found-file-path'] })
when 'source.ctf.fs'
s = Find.find(*l_inputs)
.reject { |path| FileTest.directory?(path) }
Expand Down Expand Up @@ -361,7 +361,7 @@ class BabeltraceParserThapi < OptionParserWithDefaultAndValidation
default: ['omp:2', 'cl:1', 'ze:1', 'cuda:1', 'hip:1'])
on('--debug', default: false)
on('--archive SESSION-NAME')
on('--session-found-file-path PATH')
on('--archive-session-found-file-path PATH')
on('--[no-]muxer')
on('-v', '--version', 'Print the version string') do
puts File.read(File.join(DATADIR, 'version'))
Expand Down
2 changes: 1 addition & 1 deletion xprof/xprof.rb.in
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ def on_node_processing_babeltrace(backends)

if OPTIONS[:archive]
read_file = File.join(lttng_trace_dir_tmp, 'bt_archive_ready')
opts << "--archive #{lttng_session_uuid} --session-found-file-path=#{read_file}"
opts << "--archive #{lttng_session_uuid} --archive-session-found-file-path=#{read_file}"
cmd = "#{BINDIR}/babeltrace_thapi #{opts.join(' ')} -- #{lttng_trace_dir_tmp}"
LOGGER.debug(cmd)
pid_bt = spawn(cmd)
Expand Down

0 comments on commit 7d3fa8e

Please sign in to comment.