Commit 941d6a71 authored by Brice Videau's avatar Brice Videau
Browse files

Fixes for arm 64 ubuntu 18.04.5.

parent eb23f7ed
Pipeline #12173 failed with stage
......@@ -38,7 +38,7 @@ traces.each { |t|
it = c.iter_create
it.each { |ev|
name = events[ev.handle_id][ev.id]
name = ev.name
str = "#{ev.timestamp.strftime("%H:%M:%S.%9L")}"
str << " - " << ev.top_level_scope(:STREAM_EVENT_CONTEXT).value.collect { |k, v| "#{k}: #{v}" }.join(", ") if $options[:context]
str << " - #{name}: "
......
......@@ -188,7 +188,7 @@ events = {}
traces.each { |t|
events[t.handle_id] = t.get_event_decl_list.collect(&:name).collect { |n|
[n, opencl_model["events"][n]]
}
}.to_h
}
info_str_lambda = lambda { |param_name, name, type|
......@@ -268,19 +268,20 @@ EOF
}.collect { |k,v| "\#{k}: \#{v}"}.join(", ")
}
EOF
eval(src)
}
[n, eval(src)]
}.to_h
}
it = c.iter_create
it.each { |ev|
name, descs = events[ev.handle_id][ev.id]
name = ev.name
descs = events[ev.handle_id][name]
str = "#{ev.timestamp.strftime("%H:%M:%S.%9L")}"
str << " - " << ev.top_level_scope(:STREAM_EVENT_CONTEXT).value.collect { |k, v| "#{k}: #{v}" }.join(", ") if $options[:context]
str << " - #{name}: "
defi = ev.top_level_scope(:EVENT_FIELDS)
l = event_lambdas[ev.handle_id][ev.id]
l = event_lambdas[ev.handle_id][name]
if l
str << l.call(defi.value).to_s
else
......
......@@ -475,7 +475,7 @@ void print_extented_<%= result %>(){
<% if type == "hpt_dsd_t" %>
} else {
oss << "<%= header %>"
<% var.map{| _,_, n | n}.filter{ |n| n != 'SubDevice'}.each do |n| %>
<% var.map{| _,_, n | n}.select{ |n| n != 'SubDevice'}.each do |n| %>
<< " | <%= n %>: "
<% if n == 'Device' %>
<< std::hex << std::showbase << std::internal << std::setfill('0')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment