Commit 1a667cac authored by Brice Videau's avatar Brice Videau
Browse files

Remove useless tracepoint parameters from tracepoint calls.

parent 6aaa6de8
Pipeline #11655 canceled with stage
......@@ -116,9 +116,11 @@ common_block = lambda { |c, provider|
c.tracepoint_parameters.each { |p|
puts p.init unless p.after?
}
tracepoint_params = c.tracepoint_parameters.reject { |p| p.after? }.collect(&:name)
puts <<EOF
tracepoint(#{provider}, #{c.name}_#{START}, #{(tp_params+tracepoint_params).join(", ")});
EOF
tracepoint_params = c.tracepoint_parameters.collect(&:name)
c.prologues.each { |p|
puts p
......
......@@ -18,7 +18,7 @@ EOF
if c.has_return_type? && dir == :stop
params.push("#{c.type}, #{RESULT_NAME}")
end
params += c.tracepoint_parameters.collect { |p|
params += c.tracepoint_parameters.reject { |p| p.after? && dir == :start }.collect { |p|
"#{p.type}, #{p.name}"
}
puts params.join(",\n ")
......
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