]> sourceware.org Git - systemtap.git/commit
stapbpf PR22330 fixes :: identify format types of pe_unknown arguments
authorSerhei Makarov <smakarov@redhat.com>
Tue, 12 Mar 2019 17:45:45 +0000 (13:45 -0400)
committerSerhei Makarov <smakarov@redhat.com>
Tue, 12 Mar 2019 17:45:45 +0000 (13:45 -0400)
commit9c86e8feea19111c44898d70fc9b00bc1e3fb65d
tree02eb2e65c06086a0b2c579d6f2bcfc323abc4159
parent9e1733be8a22fe0d5afbf2b6b8b8863dc309d78f
stapbpf PR22330 fixes :: identify format types of pe_unknown arguments

* bpf-translate.cxx (bpf_unparser::emit_print_format): take tok for diagnostics,
extract non-literal printf components and pass them to printf_arg_type;
signal an error if the number of printf components doesnt' match the number of args.
(printf_arg_type): take format_component argument and use it to infer the
format type in the case of pe_unknown arguments.
(bpf_unparser::emit_transport_msg): pick format_type based on perf_event_type,
which was inferred from the format string in the case of pe_unknown arguments.
(bpf_unparser::visit_embeddedcode): pass tok to emit_print_format.
(bpf_unparser::visit_print_format): remove some old TODOs, pass tok to emit_print_format.
bpf-translate.cxx
This page took 0.023948 seconds and 5 git commands to generate.