2022年5月25日 bpftrace_test ERROR

Posted rtoax

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了2022年5月25日 bpftrace_test ERROR相关的知识,希望对你有一定的参考价值。

https://github.com/iovisor/bpftrace

[rongtao@localhost tests]$ ls^C
[rongtao@localhost tests]$ sudo ./bpftrace_test
[==========] Running 355 tests from 16 test suites.
[----------] Global test environment set-up.
[----------] 5 tests from ast
[ RUN      ] ast.probe_name_special
[       OK ] ast.probe_name_special (0 ms)
[ RUN      ] ast.probe_name_kprobe
[       OK ] ast.probe_name_kprobe (0 ms)
[ RUN      ] ast.probe_name_uprobe
[       OK ] ast.probe_name_uprobe (0 ms)
[ RUN      ] ast.probe_name_usdt
[       OK ] ast.probe_name_usdt (0 ms)
[ RUN      ] ast.attach_point_name
[       OK ] ast.attach_point_name (0 ms)
[----------] 5 tests from ast (0 ms total)

[----------] 39 tests from bpftrace
[ RUN      ] bpftrace.add_begin_probe
[       OK ] bpftrace.add_begin_probe (495 ms)
[ RUN      ] bpftrace.add_end_probe
[       OK ] bpftrace.add_end_probe (479 ms)
[ RUN      ] bpftrace.add_probes_single
[       OK ] bpftrace.add_probes_single (479 ms)
[ RUN      ] bpftrace.add_probes_multiple
[       OK ] bpftrace.add_probes_multiple (479 ms)
[ RUN      ] bpftrace.add_probes_wildcard
[       OK ] bpftrace.add_probes_wildcard (479 ms)
[ RUN      ] bpftrace.add_probes_wildcard_no_matches
[       OK ] bpftrace.add_probes_wildcard_no_matches (479 ms)
[ RUN      ] bpftrace.add_probes_kernel_module
[       OK ] bpftrace.add_probes_kernel_module (478 ms)
[ RUN      ] bpftrace.add_probes_kernel_module_wildcard
[       OK ] bpftrace.add_probes_kernel_module_wildcard (478 ms)
[ RUN      ] bpftrace.add_probes_offset
[       OK ] bpftrace.add_probes_offset (478 ms)
[ RUN      ] bpftrace.add_probes_uprobe
[       OK ] bpftrace.add_probes_uprobe (482 ms)
[ RUN      ] bpftrace.add_probes_uprobe_wildcard
[       OK ] bpftrace.add_probes_uprobe_wildcard (478 ms)
[ RUN      ] bpftrace.add_probes_uprobe_wildcard_file
[       OK ] bpftrace.add_probes_uprobe_wildcard_file (478 ms)
[ RUN      ] bpftrace.add_probes_uprobe_wildcard_no_matches
[       OK ] bpftrace.add_probes_uprobe_wildcard_no_matches (478 ms)
[ RUN      ] bpftrace.add_probes_uprobe_string_literal
[       OK ] bpftrace.add_probes_uprobe_string_literal (239 ms)
[ RUN      ] bpftrace.add_probes_uprobe_address
[       OK ] bpftrace.add_probes_uprobe_address (478 ms)
[ RUN      ] bpftrace.add_probes_uprobe_string_offset
[       OK ] bpftrace.add_probes_uprobe_string_offset (477 ms)
[ RUN      ] bpftrace.add_probes_uprobe_cpp_symbol
[       OK ] bpftrace.add_probes_uprobe_cpp_symbol (956 ms)
[ RUN      ] bpftrace.add_probes_uprobe_cpp_symbol_full
[       OK ] bpftrace.add_probes_uprobe_cpp_symbol_full (478 ms)
[ RUN      ] bpftrace.add_probes_uprobe_cpp_symbol_wildcard
[       OK ] bpftrace.add_probes_uprobe_cpp_symbol_wildcard (479 ms)
[ RUN      ] bpftrace.add_probes_usdt
[       OK ] bpftrace.add_probes_usdt (478 ms)
[ RUN      ] bpftrace.add_probes_usdt_wildcard
[       OK ] bpftrace.add_probes_usdt_wildcard (250 ms)
[ RUN      ] bpftrace.add_probes_usdt_empty_namespace
[       OK ] bpftrace.add_probes_usdt_empty_namespace (239 ms)
[ RUN      ] bpftrace.add_probes_usdt_empty_namespace_conflict
ERROR: namespace for usdt:/bin/sh:tp not specified, matched 2 probes
INFO: please specify a unique namespace or use '*' to attach to all matched probes
[       OK ] bpftrace.add_probes_usdt_empty_namespace_conflict (240 ms)
[ RUN      ] bpftrace.add_probes_usdt_duplicate_markers
[       OK ] bpftrace.add_probes_usdt_duplicate_markers (239 ms)
[ RUN      ] bpftrace.add_probes_tracepoint
[       OK ] bpftrace.add_probes_tracepoint (479 ms)
[ RUN      ] bpftrace.add_probes_tracepoint_wildcard
[       OK ] bpftrace.add_probes_tracepoint_wildcard (479 ms)
[ RUN      ] bpftrace.add_probes_tracepoint_category_wildcard
[       OK ] bpftrace.add_probes_tracepoint_category_wildcard (480 ms)
[ RUN      ] bpftrace.add_probes_tracepoint_wildcard_no_matches
[       OK ] bpftrace.add_probes_tracepoint_wildcard_no_matches (481 ms)
[ RUN      ] bpftrace.add_probes_profile
[       OK ] bpftrace.add_probes_profile (483 ms)
[ RUN      ] bpftrace.add_probes_interval
[       OK ] bpftrace.add_probes_interval (481 ms)
[ RUN      ] bpftrace.add_probes_software
[       OK ] bpftrace.add_probes_software (481 ms)
[ RUN      ] bpftrace.add_probes_hardware
[       OK ] bpftrace.add_probes_hardware (483 ms)
[ RUN      ] bpftrace.invalid_provider
[       OK ] bpftrace.invalid_provider (241 ms)
[ RUN      ] bpftrace.empty_attachpoints
stdin:1:1-1: ERROR: No attach points for probe


[       OK ] bpftrace.empty_attachpoints (242 ms)
[ RUN      ] bpftrace.sort_by_key_int
[       OK ] bpftrace.sort_by_key_int (242 ms)
[ RUN      ] bpftrace.sort_by_key_int_int
[       OK ] bpftrace.sort_by_key_int_int (242 ms)
[ RUN      ] bpftrace.sort_by_key_str
[       OK ] bpftrace.sort_by_key_str (243 ms)
[ RUN      ] bpftrace.sort_by_key_str_str
[       OK ] bpftrace.sort_by_key_str_str (243 ms)
[ RUN      ] bpftrace.sort_by_key_int_str
[       OK ] bpftrace.sort_by_key_int_str (242 ms)
[----------] 39 tests from bpftrace (16355 ms total)

[----------] 12 tests from childproc
[ RUN      ] childproc.exe_does_not_exist
[       OK ] childproc.exe_does_not_exist (0 ms)
[ RUN      ] childproc.too_many_arguments
[       OK ] childproc.too_many_arguments (0 ms)
[ RUN      ] childproc.child_exit_success
[       OK ] childproc.child_exit_success (10 ms)
[ RUN      ] childproc.child_exit_err
[       OK ] childproc.child_exit_err (10 ms)
[ RUN      ] childproc.terminate
[       OK ] childproc.terminate (10 ms)
[ RUN      ] childproc.destructor_destroy_child
[       OK ] childproc.destructor_destroy_child (26 ms)
[ RUN      ] childproc.child_kill_before_exec
[       OK ] childproc.child_kill_before_exec (10 ms)
[ RUN      ] childproc.stop_cont
[       OK ] childproc.stop_cont (36 ms)
[ RUN      ] childproc.ptrace_child_exit_success
[       OK ] childproc.ptrace_child_exit_success (11 ms)
[ RUN      ] childproc.ptrace_child_exit_error
[       OK ] childproc.ptrace_child_exit_error (11 ms)
[ RUN      ] childproc.ptrace_child_kill_before_execve
[       OK ] childproc.ptrace_child_kill_before_execve (1 ms)
[ RUN      ] childproc.ptrace_child_term_before_execve
[       OK ] childproc.ptrace_child_term_before_execve (10 ms)
[----------] 12 tests from childproc (141 ms total)

[----------] 21 tests from clang_parser
[ RUN      ] clang_parser.integers
[       OK ] clang_parser.integers (262 ms)
[ RUN      ] clang_parser.c_union
[       OK ] clang_parser.c_union (259 ms)
[ RUN      ] clang_parser.c_enum
[       OK ] clang_parser.c_enum (259 ms)
[ RUN      ] clang_parser.integer_ptr
[       OK ] clang_parser.integer_ptr (259 ms)
[ RUN      ] clang_parser.string_ptr
[       OK ] clang_parser.string_ptr (259 ms)
[ RUN      ] clang_parser.string_array
[       OK ] clang_parser.string_array (277 ms)
[ RUN      ] clang_parser.nested_struct_named
[       OK ] clang_parser.nested_struct_named (260 ms)
[ RUN      ] clang_parser.nested_struct_ptr_named
[       OK ] clang_parser.nested_struct_ptr_named (259 ms)
[ RUN      ] clang_parser.nested_struct_no_type
/home/rongtao/Git/bpftrace/tests/clang_parser.cpp:209: Failure
Value of: bpftrace.structs.Has(bar_name)
  Actual: false
Expected: true
[  FAILED  ] clang_parser.nested_struct_no_type (262 ms)
[ RUN      ] clang_parser.nested_struct_unnamed_fields
[       OK ] clang_parser.nested_struct_unnamed_fields (259 ms)
[ RUN      ] clang_parser.nested_struct_anon_union_struct
[       OK ] clang_parser.nested_struct_anon_union_struct (260 ms)
[ RUN      ] clang_parser.bitfields
[       OK ] clang_parser.bitfields (264 ms)
[ RUN      ] clang_parser.bitfields_uneven_fields
[       OK ] clang_parser.bitfields_uneven_fields (262 ms)
[ RUN      ] clang_parser.bitfields_with_padding
[       OK ] clang_parser.bitfields_with_padding (262 ms)
[ RUN      ] clang_parser.builtin_headers
[       OK ] clang_parser.builtin_headers (261 ms)
[ RUN      ] clang_parser.macro_preprocessor
[       OK ] clang_parser.macro_preprocessor (276 ms)
[ RUN      ] clang_parser.parse_fail
definitions.h:2:28: error: field has incomplete type 'struct b'
definitions.h:2:26: note: forward declaration of 'struct b'
[       OK ] clang_parser.parse_fail (275 ms)
[ RUN      ] clang_parser.struct_typedef
[       OK ] clang_parser.struct_typedef (262 ms)
[ RUN      ] clang_parser.struct_qualifiers
[       OK ] clang_parser.struct_qualifiers (260 ms)
[ RUN      ] clang_parser.redefined_types
definitions.h:3:8: error: redefinition of 'a'
definitions.h:2:8: note: previous definition is here
WARNING: Cannot take type definitions from BTF since there is a redefinition conflict with user-defined types.
definitions.h:3:8: error: redefinition of 'a'
definitions.h:2:8: note: previous definition is here
WARNING: Cannot take type definitions from BTF since there is a redefinition conflict with user-defined types.
[       OK ] clang_parser.redefined_types (275 ms)
[ RUN      ] clang_parser.data_loc_annotation
[       OK ] clang_parser.data_loc_annotation (274 ms)
[----------] 21 tests from clang_parser (5557 ms total)

[----------] 2 tests from LogStream
[ RUN      ] LogStream.basic
[       OK ] LogStream.basic (0 ms)
[ RUN      ] LogStream.with_location
[       OK ] LogStream.with_location (0 ms)
[----------] 2 tests from LogStream (0 ms total)

[----------] 1 test from Log
[ RUN      ] Log.disable_log_type
[       OK ] Log.disable_log_type (0 ms)
[----------] 1 test from Log (0 ms total)

[----------] 85 tests from Parser
[ RUN      ] Parser.builtin_variables
[       OK ] Parser.builtin_variables (5192 ms)
[ RUN      ] Parser.positional_param
[       OK ] Parser.positional_param (496 ms)
[ RUN      ] Parser.positional_param_count
[       OK ] Parser.positional_param_count (247 ms)
[ RUN      ] Parser.positional_param_attachpoint
[       OK ] Parser.positional_param_attachpoint (248 ms)
[ RUN      ] Parser.comment
[       OK ] Parser.comment (242 ms)
[ RUN      ] Parser.map_assign
[       OK ] Parser.map_assign (2610 ms)
[ RUN      ] Parser.variable_assign
[       OK ] Parser.variable_assign (712 ms)
[ RUN      ] Parser.compound_map_assignments
[       OK ] Parser.compound_map_assignments (2387 ms)
[ RUN      ] Parser.integer_sizes
[       OK ] Parser.integer_sizes (479 ms)
[ RUN      ] Parser.map_key
[       OK ] Parser.map_key (720 ms)
[ RUN      ] Parser.predicate
[       OK ] Parser.predicate (240 ms)
[ RUN      ] Parser.predicate_containing_division
[       OK ] Parser.predicate_containing_division (240 ms)
[ RUN      ] Parser.expressions
[       OK ] Parser.expressions (239 ms)
[ RUN      ] Parser.variable_post_increment_decrement
[       OK ] Parser.variable_post_increment_decrement (958 ms)
[ RUN      ] Parser.map_increment_decrement
[       OK ] Parser.map_increment_decrement (962 ms)
[ RUN      ] Parser.bit_shifting
[       OK ] Parser.bit_shifting (721 ms)
[ RUN      ] Parser.ternary_int
[       OK ] Parser.ternary_int (240 ms)
[ RUN      ] Parser.if_block
[       OK ] Parser.if_block (240 ms)
[ RUN      ] Parser.if_stmt_if
[       OK ] Parser.if_stmt_if (240 ms)
[ RUN      ] Parser.if_block_variable
[       OK ] Parser.if_block_variable (239 ms)
[ RUN      ] Parser.if_else
[       OK ] Parser.if_else (239 ms)
[ RUN      ] Parser.if_elseif
[       OK ] Parser.if_elseif (239 ms)
[ RUN      ] Parser.if_elseif_else
[       OK ] Parser.if_elseif_else (239 ms)
[ RUN      ] Parser.if_elseif_elseif_else
[       OK ] Parser.if_elseif_elseif_else (239 ms)
[ RUN      ] Parser.unroll
[       OK ] Parser.unroll (239 ms)
[ RUN      ] Parser.ternary_str
[       OK ] Parser.ternary_str (241 ms)
[ RUN      ] Parser.ternary_nested
[       OK ] Parser.ternary_nested (241 ms)
[ RUN      ] Parser.call
[       OK ] Parser.call (240 ms)
[ RUN      ] Parser.call_unknown_function
[       OK ] Parser.call_unknown_function (479 ms)
[ RUN      ] Parser.call_builtin
[       OK ] Parser.call_builtin (1679 ms)
[ RUN      ] Parser.call_kaddr
[       OK ] Parser.call_kaddr (240 ms)
[ RUN      ] Parser.multiple_probes
[       OK ] Parser.multiple_probes (240 ms)
[ RUN      ] Parser.uprobe
[       OK ] Parser.uprobe (2164 ms)
[ RUN      ] Parser.usdt
[       OK ] Parser.usdt (722 ms)
[ RUN      ] Parser.usdt_namespaced_probe
[       OK ] Parser.usdt_namespaced_probe (965 ms)
[ RUN      ] Parser.escape_chars
[       OK ] Parser.escape_chars (240 ms)
[ RUN      ] Parser.begin_probe
[       OK ] Parser.begin_probe (721 ms)
[ RUN      ] Parser.end_probe
[       OK ] Parser.end_probe (721 ms)
[ RUN      ] Parser.tracepoint_probe
[       OK ] Parser.tracepoint_probe (962 ms)
[ RUN      ] Parser.profile_probe
[       OK ] Parser.profile_probe (1204 ms)
[ RUN      ] Parser.interval_probe
[       OK ] Parser.interval_probe (963 ms)
[ RUN      ] Parser.software_probe
[       OK ] Parser.software_probe (965 ms)
[ RUN      ] Parser.hardware_probe
[       OK ] Parser.hardware_probe (964 ms)
[ RUN      ] Parser.watchpoint_probe
[       OK ] Parser.watchpoint_probe (1447 ms)
[ RUN      ] Parser.asyncwatchpoint_probe
[       OK ] Parser.asyncwatchpoint_probe (1448 ms)
[ RUN      ] Parser.multiple_attach_points_kprobe
[       OK ] Parser.multiple_attach_points_kprobe (241 ms)
[ RUN      ] Parser.character_class_attach_point
[       OK ] Parser.character_class_attach_point (241 ms)
[ RUN      ] Parser.wildcard_probetype
[       OK ] Parser.wildcard_probetype (737 ms)
[ RUN      ] Parser.wildcard_attach_points
[       OK ] Parser.wildcard_attach_points (1443 ms)
[ RUN      ] Parser.wildcard_path
[       OK ] Parser.wildcard_path (2420 ms)
[ RUN      ] Parser.dot_in_func
[       OK ] Parser.dot_in_func (242 ms)
[ RUN      ] Parser.wildcard_func
[       OK ] Parser.wildcard_func (9674 ms)
[ RUN      ] Parser.short_map_name
[       OK ] Parser.short_map_name (241 ms)
[ RUN      ] Parser.include
[       OK ] Parser.include (241 ms)
[ RUN      ] Parser.include_quote
[       OK ] Parser.include_quote (242 ms)
[ RUN      ] Parser.include_multiple
[       OK ] Parser.include_multiple (241 ms)
[ RUN      ] Parser.brackets
[       OK ] Parser.brackets (241 ms)
[ RUN      ] Parser.cast
[       OK ] Parser.cast (483 ms)
[ RUN      ] Parser.cast_ptr
[       OK ] Parser.cast_ptr (483 ms)
[ RUN      ] Parser.cast_typedef
[       OK ] Parser.cast_typedef (241 ms)
[ RUN      ] Parser.cast_ptr_typedef
[       OK ] Parser.cast_ptr_typedef (243 ms)
[ RUN      ] Parser.cast_or_expr1
[       OK ] Parser.cast_or_expr1 (242 ms)
[ RUN      ] Parser.cast_or_expr2
[       OK ] Parser.cast_or_expr2 (241 ms)
[ RUN      ] Parser.cast_precedence
[       OK ] Parser.cast_precedence (725 ms)
[ RUN      ] Parser.dereference_precedence
[       OK ] Parser.dereference_precedence (969 ms)
[ RUN      ] Parser.field_access
[       OK ] Parser.field_access (483 ms)
[ RUN      ] Parser.field_access_builtin
[       OK ] Parser.field_access_builtin (484 ms)
[ RUN      ] Parser.array_access
[       OK ] Parser.array_access (483 ms)
[ RUN      ] Parser.cstruct
[       OK ] Parser.cstruct (241 ms)
[ RUN      ] Parser.cstruct_nested
[       OK ] Parser.cstruct_nested (242 ms)
[ RUN      ] Parser.unexpected_symbol
[       OK ] Parser.unexpected_symbol (243 ms)
[ RUN      ] Parser.string_with_tab
[       OK ] Parser.string_with_tab (242 ms)
[ RUN      ] Parser.unterminated_string
[       OK ] Parser.unterminated_string (241 ms)
[ RUN      ] Parser.kprobe_offset
[       OK ] Parser.kprobe_offset (1211 ms)
[ RUN      ] Parser.kretprobe_offset
[       OK ] Parser.kretprobe_offset (241 ms)
[ RUN      ] Parser.uprobe_offset
[       OK ] Parser.uprobe_offset (969 ms)
[ RUN      ] Parser.uretprobe_offset
[       OK ] Parser.uretprobe_offset (485 ms)
[ RUN      ] Parser.invalid_increment_decrement
[       OK ] Parser.invalid_increment_decrement (1210 ms)
[ RUN      ] Parser.long_param_overflow
[       OK ] Parser.long_param_overflow (242 ms)
[ RUN      ] Parser.empty_arguments
[       OK ] Parser.empty_arguments (726 ms)
[ RUN      ] Parser.int_notation
[       OK ] Parser.int_notation (6057 ms)
[ RUN      ] Parser.while_loop
[       OK ] Parser.while_loop (242 ms)
[ RUN      ] Parser.tuple_assignment_error_message
[       OK ] Parser.tuple_assignment_error_message (242 ms)
[ RUN      ] Parser.tuple_assignment_error
[       OK ] Parser.tuple_assignment_error (1452 ms)
[ RUN      ] Parser.abs_knl_address
[       OK ] Parser.abs_knl_address (242 ms)
[----------] 85 tests from Parser (71543 ms total)

[----------] 158 tests from semantic_analyser
[ RUN      ] semantic_analyser.compound_variable_assignments
[       OK ] semantic_analyser.compound_variable_assignments (2425 ms)
[ RUN      ] semantic_analyser.builtin_variables
[       OK ] semantic_analyser.builtin_variables (6194 ms)
[ RUN      ] semantic_analyser.builtin_cpid
[       OK ] semantic_analyser.builtin_cpid (1556 ms)
[ RUN      ] semantic_analyser.builtin_functions
[       OK ] semantic_analyser.builtin_functions (8008 ms)
[ RUN      ] semantic_analyser.undefined_map
[       OK ] semantic_analyser.undefined_map (774 ms)
[ RUN      ] semantic_analyser.consistent_map_values
[       OK ] semantic_analyser.consistent_map_values (518 ms)
[ RUN      ] semantic_analyser.consistent_map_keys
[       OK ] semantic_analyser.consistent_map_keys (2328 ms)
[ RUN      ] semantic_analyser.if_statements
[       OK ] semantic_analyser.if_statements (1033 ms)
[ RUN      ] semantic_analyser.predicate_expressions
[       OK ] semantic_analyser.predicate_expressions (1031 ms)
[ RUN      ] semantic_analyser.ternary_expressions
[       OK ] semantic_analyser.ternary_expressions (1813 ms)
[ RUN      ] semantic_analyser.mismatched_call_types
[       OK ] semantic_analyser.mismatched_call_types (774 ms)
[ RUN      ] semantic_analyser.compound_left
[       OK ] semantic_analyser.compound_left (772 ms)
[ RUN      ] semantic_analyser.compound_right
[       OK ] semantic_analyser.compound_right (773 ms)
[ RUN      ] semantic_analyser.compound_plus
[       OK ] semantic_analyser.compound_plus (777 ms)
[ RUN      ] semantic_analyser.compound_minus
[       OK ] semantic_analyser.compound_minus (777 ms)
[ RUN      ] semantic_analyser.compound_mul
[       OK ] semantic_analyser.compound_mul (774 ms)
[ RUN      ] semantic_analyser.compound_div
[       OK ] semantic_analyser.compound_div (775 ms)
[ RUN      ] semantic_analyser.compound_mod
[       OK ] semantic_analyser.compound_mod (773 ms)
[ RUN      ] semantic_analyser.compound_band
[       OK ] semantic_analyser.compound_band (776 ms)
[ RUN      ] semantic_analyser.compound_bor
[       OK ] semantic_analyser.compound_bor (774 ms)
[ RUN      ] semantic_analyser.compound_bxor
[       OK ] semantic_analyser.compound_bxor (774 ms)
[ RUN      ] semantic_analyser.call_hist
[       OK ] semantic_analyser.call_hist (1804 ms)
[ RUN      ] semantic_analyser.call_lhist
[       OK ] semantic_analyser.call_lhist (3099 ms)
[ RUN      ] semantic_analyser.call_lhist_posparam
stdin:1:33-35: ERROR: $4 used numerically but given "hello"
kprobe:f  @ = lhist(5, $1, $2, $4); 
                                ~~
[       OK ] semantic_analyser.call_lhist_posparam (272 ms)
[ RUN      ] semantic_analyser.call_count
[       OK ] semantic_analyser.call_count (1817 ms)
[ RUN      ] semantic_analyser.call_sum
[       OK ] semantic_analyser.call_sum (2068 ms)
[ RUN      ] semantic_analyser.call_min
[       OK ] semantic_analyser.call_min (1814 ms)
[ RUN      ] semantic_analyser.call_max
[       OK ] semantic_analyser.call_max (1818 ms)
[ RUN      ] semantic_analyser.call_avg
[       OK ] semantic_analyser.call_avg (1805 ms)
[ RUN      ] semantic_analyser.call_stats
[       OK ] semantic_analyser.call_stats (1809 ms)
[ RUN      ] semantic_analyser.call_delete
[       OK ] semantic_analyser.call_delete (2069 ms)
[ RUN      ] semantic_analyser.call_exit
[       OK ] semantic_analyser.call_exit (2070 ms)
[ RUN      ] semantic_analyser.call_print
[       OK ] semantic_analyser.call_print (3886 ms)
[ RUN      ] semantic_analyser.call_print_non_map
[       OK ] semantic_analyser.call_print_non_map (3364 ms)
[ RUN      ] semantic_analyser.call_clear
[       OK ] semantic_analyser.call_clear (2851 ms)
[ RUN      ] semantic_analyser.call_zero
[       OK ] semantic_analyser.call_zero (2849 ms)
[ RUN      ] semantic_analyser.call_time
[       OK ] semantic_analyser.call_time (2587 ms)
[ RUN      ] semantic_analyser.call_strftime
[       OK ] semantic_analyser.call_strftime (3883 ms)
[ RUN      ] semantic_analyser.call_str
[       OK ] semantic_analyser.call_str (1034 ms)
[ RUN      ] semantic_analyser.call_str_2_lit
[       OK ] semantic_analyser.call_str_2_lit (1034 ms)
[ RUN      ] semantic_analyser.call_str_2_expr
[       OK ] semantic_analyser.call_str_2_expr (517 ms)
[ RUN      ] semantic_analyser.call_str_state_leak_regression_test
[       OK ] semantic_analyser.call_str_state_leak_regression_test (258 ms)
[ RUN      ] semantic_analyser.call_buf
[       OK ] semantic_analyser.call_buf (1812 ms)
[ RUN      ] semantic_analyser.call_buf_lit
[       OK ] semantic_analyser.call_buf_lit (520 ms)
[ RUN      ] semantic_analyser.call_buf_expr
[       OK ] semantic_analyser.call_buf_expr (517 ms)
[ RUN      ] semantic_analyser.call_buf_posparam
stdin:1:22-24: ERROR: $2 used numerically but given "hello"
kprobe:f  buf(arg0, $2); 
                     ~~
[       OK ] semantic_analyser.call_buf_posparam (273 ms)
[ RUN      ] semantic_analyser.call_ksym
[       OK ] semantic_analyser.call_ksym (1035 ms)
[ RUN      ] semantic_analyser.call_usym
[       OK ] semantic_analyser.call_usym (1033 ms)
[ RUN      ] semantic_analyser.call_ntop
[       OK ] semantic_analyser.call_ntop (4412 ms)
[ RUN      ] semantic_analyser.call_kaddr
[       OK ] semantic_analyser.call_kaddr (1037 ms)
[ RUN      ] semantic_analyser.call_uaddr
[       OK ] semantic_analyser.call_uaddr (3375 ms)
[ RUN      ] semantic_analyser.call_cgroupid
[       OK ] semantic_analyser.call_cgroupid (258 ms)
[ RUN      ] semantic_analyser.call_reg
[       OK ] semantic_analyser.call_reg (1297 ms)
[ RUN      ] semantic_analyser.call_func
[       OK ] semantic_analyser.call_func (1037 ms)
[ RUN      ] semantic_analyser.call_probe
[       OK ] semantic_analyser.call_probe (518 ms)
[ RUN      ] semantic_analyser.call_cat
[       OK ] semantic_analyser.call_cat (2333 ms)
[ RUN      ] semantic_analyser.call_stack
stdin:1:12-21: ERROR: $2 used numerically but given "hello"
kprobe:f  kstack($2) 
           ~~~~~~~~~
stdin:1:12-21: ERROR: $2 used numerically but given "hello"
kprobe:f  ustack($2) 
           ~~~~~~~~~
stdin:1:25-27: ERROR: $2 used numerically but given "hello"
kprobe:f  kstack(perf, $2) 
                        ~~
stdin:1:25-27: ERROR: $2 used numerically but given "hello"
kprobe:f  ustack(perf, $2) 
                        ~~
[       OK ] semantic_analyser.call_stack (8131 ms)
[ RUN      ] semantic_analyser.call_macaddr
[       OK ] semantic_analyser.call_macaddr (2335 ms)
[ RUN      ] semantic_analyser.call_bswap
[       OK ] semantic_analyser.call_bswap (2585 ms)
[ RUN      ] semantic_analyser.call_cgroup_path
[       OK ] semantic_analyser.call_cgroup_path (2071 ms)
[ RUN      ] semantic_analyser.map_reassignment
[       OK ] semantic_analyser.map_reassignment (518 ms)
[ RUN      ] semantic_analyser.variable_reassignment
[       OK ] semantic_analyser.variable_reassignment (516 ms)
[ RUN      ] semantic_analyser.map_use_before_assign
[       OK ] semantic_analyser.map_use_before_assign (258 ms)
[ RUN      ] semantic_analyser.variable_use_before_assign
[       OK ] semantic_analyser.variable_use_before_assign (258 ms)
[ RUN      ] semantic_analyser.maps_are_global
[       OK ] semantic_analyser.maps_are_global (518 ms)
[ RUN      ] semantic_analyser.variables_are_local
[       OK ] semantic_analyser.variables_are_local (518 ms)
[ RUN      ] semantic_analyser.array_access
stdin:1:47-79: ERROR: $2 used numerically but given "hello"
struct MyStruct  int y[4];  kprobe:f  $s = ((struct MyStruct *)arg0)->y[$2]; 
                                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[       OK ] semantic_analyser.array_access (3382 ms)
[ RUN      ] semantic_analyser.array_in_map
definitions.h:3:19: error: unknown type name 'uint8_t'
definitions.h:3:33: error: unknown type name 'uint32_t'
ERROR: Include headers with missing type definitions or install BTF information to your system.
[       OK ] semantic_analyser.array_in_map (1046 ms)
[ RUN      ] semantic_analyser.array_as_map_key
[       OK ] semantic_analyser.array_as_map_key (777 ms)
[ RUN      ] semantic_analyser.variable_type
[       OK ] semantic_analyser.variable_type (504 ms)
[ RUN      ] semantic_analyser.unroll
stdin:1:12-21: ERROR: $2 used numerically but given "hello"
kprobe:f  unroll($2)  printf("hi\\n");  
           ~~~~~~~~~
[       OK ] semantic_analyser.unroll (1079 ms)
[ RUN      ] semantic_analyser.map_integer_sizes
[       OK ] semantic_analyser.map_integer_sizes (513 ms)
[ RUN      ] semantic_analyser.unop_dereference
[       OK ] semantic_analyser.unop_dereference (1038 ms)
[ RUN      ] semantic_analyser.unop_not
[       OK ] semantic_analyser.unop_not (1035 ms)
[ RUN      ] semantic_analyser.unop_lnot
[       OK ] semantic_analyser.unop_lnot (1292 ms)
[ RUN      ] semantic_analyser.unop_increment_decrement
[       OK ] semantic_analyser.unop_increment_decrement (2840 ms)
[ RUN      ] semantic_analyser.printf
[       OK ] semantic_analyser.printf (3369 ms)
[ RUN      ] semantic_analyser.system
[       OK ] semantic_analyser.system (1034 ms)
[ RUN      ] semantic_analyser.printf_format_int
[       OK ] semantic_analyser.printf_format_int (2078 ms)
[ RUN      ] semantic_analyser.printf_format_int_with_length
[       OK ] semantic_analyser.printf_format_int_with_length (12441 ms)
[ RUN      ] semantic_analyser.printf_format_string
[       OK ] semantic_analyser.printf_format_string (1298 ms)
[ RUN      ] semantic_analyser.printf_bad_format_string
[       OK ] semantic_analyser.printf_bad_format_string (1035 ms)
[ RUN      ] semantic_analyser.printf_format_buf
[       OK ] semantic_analyser.printf_format_buf (259 ms)
[ RUN      ] semantic_analyser.printf_bad_format_buf
[       OK ] semantic_analyser.printf_bad_format_buf (519 ms)
[ RUN      ] semantic_analyser.printf_format_buf_no_ascii
[       OK ] semantic_analyser.printf_format_buf_no_ascii (259 ms)
[ RUN      ] semantic_analyser.printf_bad_format_buf_no_ascii
[       OK ] semantic_analyser.printf_bad_format_buf_no_ascii (517 ms)
[ RUN      ] semantic_analyser.printf_format_multi
[       OK ] semantic_analyser.printf_format_multi (520 ms)
[ RUN      ] semantic_analyser.join
[       OK ] semantic_analyser.join (1556 ms)
[ RUN      ] semantic_analyser.join_delimiter
[       OK ] semantic_analyser.join_delimiter (1554 ms)
[ RUN      ] semantic_analyser.kprobe
[       OK ] semantic_analyser.kprobe (517 ms)
[ RUN      ] semantic_analyser.uprobe
[       OK ] semantic_analyser.uprobe (4408 ms)
[ RUN      ] semantic_analyser.usdt
[       OK ] semantic_analyser.usdt (1298 ms)
[ RUN      ] semantic_analyser.begin_end_probes
[       OK ] semantic_analyser.begin_end_probes (1036 ms)
[ RUN      ] semantic_analyser.tracepoint
[       OK ] semantic_analyser.tracepoint (260 ms)
[ RUN      ] semantic_analyser.watchpoint_invalid_modes
[       OK ] semantic_analyser.watchpoint_invalid_modes (344 ms)
[ RUN      ] semantic_analyser.watchpoint_absolute
[       OK ] semantic_analyser.watchpoint_absolute (296 ms)
[ RUN      ] semantic_analyser.watchpoint_function
[       OK ] semantic_analyser.watchpoint_function (326 ms)
[ RUN      ] semantic_analyser.asyncwatchpoint
[       OK ] semantic_analyser.asyncwatchpoint (341 ms)
[ RUN      ] semantic_analyser.args_builtin_wrong_use
[       OK ] semantic_analyser.args_builtin_wrong_use (2867 ms)
[ RUN      ] semantic_analyser.profile
[       OK ] semantic_analyser.profile (1293 ms)
[ RUN      ] semantic_analyser.interval
[       OK ] semantic_analyser.interval (1294 ms)
[ RUN      ] semantic_analyser.variable_cast_types
[       OK ] semantic_analyser.variable_cast_types (517 ms)
[ RUN      ] semantic_analyser.map_cast_types
[       OK ] semantic_analyser.map_cast_types (517 ms)
[ RUN      ] semantic_analyser.variable_casts_are_local
[       OK ] semantic_analyser.variable_casts_are_local (259 ms)
[ RUN      ] semantic_analyser.map_casts_are_global
[       OK ] semantic_analyser.map_casts_are_global (258 ms)
[ RUN      ] semantic_analyser.cast_unknown_type
[       OK ] semantic_analyser.cast_unknown_type (258 ms)
[ RUN      ] semantic_analyser.cast_struct
[       OK ] semantic_analyser.cast_struct (518 ms)
[ RUN      ] semantic_analyser.field_access
[       OK ] semantic_analyser.field_access (776 ms)
[ RUN      ] semantic_analyser.field_access_wrong_field
[       OK ] semantic_analyser.field_access_wrong_field (777 ms)
[ RUN      ] semantic_analyser.field_access_wrong_expr
[       OK ] semantic_analyser.field_access_wrong_expr (257 ms)
[ RUN      ] semantic_analyser.field_access_types
[       OK ] semantic_analyser.field_access_types (1552 ms)
[ RUN      ] semantic_analyser.field_access_pointer
[       OK ] semantic_analyser.field_access_pointer (777 ms)
[ RUN      ] semantic_analyser.field_access_sub_struct
[       OK ] semantic_analyser.field_access_sub_struct (1560 ms)
[ RUN      ] semantic_analyser.field_access_is_internal
[       OK ] semantic_analyser.field_access_is_internal (763 ms)
[ RUN      ] semantic_analyser.struct_as_map_key
[       OK ] semantic_analyser.struct_as_map_key (777 ms)
[ RUN      ] semantic_analyser.probe_short_name
[       OK ] semantic_analyser.probe_short_name (2340 ms)
[ RUN      ] semantic_analyser.positional_parameters
[       OK ] semantic_analyser.positional_parameters (778 ms)
[ RUN      ] semantic_analyser.macros
[       OK ] semantic_analyser.macros (776 ms)
[ RUN      ] semantic_analyser.enums
[       OK ] semantic_analyser.enums (259 ms)
[ RUN      ] semantic_analyser.signed_int_comparison_warnings
[       OK ] semantic_analyser.signed_int_comparison_warnings (4151 ms)
[ RUN      ] semantic_analyser.string_comparison
[       OK ] semantic_analyser.string_comparison (1295 ms)
[ RUN      ] semantic_analyser.signed_int_arithmetic_warnings
[       OK ] semantic_analyser.signed_int_arithmetic_warnings (2073 ms)
[ RUN      ] semantic_analyser.signed_int_division_warnings
[       OK ] semantic_analyser.signed_int_division_warnings (1034 ms)
[ RUN      ] semantic_analyser.signed_int_modulo_warnings
[       OK ] semantic_analyser.signed_int_modulo_warnings (1035 ms)
[ RUN      ] semantic_analyser.map_as_lookup_table
[       OK ] semantic_analyser.map_as_lookup_table (260 ms)
[ RUN      ] semantic_analyser.cast_sign
[       OK ] semantic_analyser.cast_sign (503 ms)
[ RUN      ] semantic_analyser.binop_sign
[       OK ] semantic_analyser.binop_sign (5049 ms)
[ RUN      ] semantic_analyser.int_cast_types
[       OK ] semantic_analyser.int_cast_types (2592 ms)
[ RUN      ] semantic_analyser.int_cast_usage
[       OK ] semantic_analyser.int_cast_usage (1553 ms)
[ RUN      ] semantic_analyser.intptr_cast_types
[       OK ] semantic_analyser.intptr_cast_types (2596 ms)
[ RUN      ] semantic_analyser.intptr_cast_usage
[       OK ] semantic_analyser.intptr_cast_usage (1836 ms)
[ RUN      ] semantic_analyser.signal
stdin:1:7-16: ERROR: $2 used numerically but given "hello"
k:f  signal($2) 
      ~~~~~~~~~
[       OK ] semantic_analyser.signal (5715 ms)
[ RUN      ] semantic_analyser.strncmp
[       OK ] semantic_analyser.strncmp (1824 ms)
[ RUN      ] semantic_analyser.strncmp_posparam
stdin:1:31-33: ERROR: $2 used numerically but given "hello"
i:s:1  strncmp("foo", "bar", $2) 
                              ~~
[       OK ] semantic_analyser.strncmp_posparam (291 ms)
[ RUN      ] semantic_analyser.override
[       OK ] semantic_analyser.override (1823 ms)
[ RUN      ] semantic_analyser.unwatch
[       OK ] semantic_analyser.unwatch (2594 ms)
[ RUN      ] semantic_analyser.struct_member_keywords
[       OK ] semantic_analyser.struct_member_keywords (10063 ms)
[ RUN      ] semantic_analyser.jumps
[       OK ] semantic_analyser.jumps (780 ms)
[ RUN      ] semantic_analyser.while_loop
[       OK ] semantic_analyser.while_loop (2594 ms)
[ RUN      ] semantic_analyser.builtin_args
[       OK ] semantic_analyser.builtin_args (321 ms)
[ RUN      ] semantic_analyser.type_ctx
[       OK ] semantic_analyser.type_ctx (1315 ms)
[ RUN      ] semantic_analyser.double_pointer_basic
[       OK ] semantic_analyser.double_pointer_basic (776 ms)
[ RUN      ] semantic_analyser.double_pointer_int
[       OK ] semantic_analyser.double_pointer_int (504 ms)
[ RUN      ] semantic_analyser.double_pointer_struct
[       OK ] semantic_analyser.double_pointer_struct (508 ms)
[ RUN      ] semantic_analyser.pointer_arith
[       OK ] semantic_analyser.pointer_arith (9083 ms)
[ RUN      ] semantic_analyser.pointer_compare
[       OK ] semantic_analyser.pointer_compare (4148 ms)
[ RUN      ] semantic_analyser.tuple
[       OK ] semantic_analyser.tuple (5961 ms)
[ RUN      ] semantic_analyser.tuple_indexing
[       OK ] semantic_analyser.tuple_indexing (1828 ms)
[ RUN      ] semantic_analyser.tuple_assign_var
[       OK ] semantic_analyser.tuple_assign_var (259 ms)
[ RUN      ] semantic_analyser.tuple_assign_map
[       OK ] semantic_analyser.tuple_assign_map (259 ms)
[ RUN      ] semantic_analyser.tuple_nested
[       OK ] semantic_analyser.tuple_nested (259 ms)
[ RUN      ] semantic_analyser.tuple_types_unique
[       OK ] semantic_analyser.tuple_types_unique (260 ms)
[ RUN      ] semantic_analyser.multi_pass_type_inference_zero_size_int
[       OK ] semantic_analyser.multi_pass_type_inference_zero_size_int (259 ms)
[ RUN      ] semantic_analyser.call_kptr_uptr
[       OK ] semantic_analyser.call_kptr_uptr (2093 ms)
[ RUN      ] semantic_analyser.call_path
[       OK ] semantic_analyser.call_path (2336 ms)
[ RUN      ] semantic_analyser.int_ident
[       OK ] semantic_analyser.int_ident (517 ms)
[ RUN      ] semantic_analyser.tracepoint_common_field
[       OK ] semantic_analyser.tracepoint_common_field (521 ms)
[ RUN      ] semantic_analyser.string_size
[       OK ] semantic_analyser.string_size (316 ms)
[----------] 158 tests from semantic_analyser (263283 ms total)

[----------] 5 tests from portability_analyser
[ RUN      ] portability_analyser.generic_field_access_disabled
[       OK ] portability_analyser.generic_field_access_disabled (270 ms)
[ RUN      ] portability_analyser.tracepoint_field_access
[       OK ] portability_analyser.tracepoint_field_access (793 ms)
[ RUN      ] portability_analyser.positional_params_disabled
[       OK ] portability_analyser.positional_params_disabled (274 ms)
[ RUN      ] portability_analyser.curtask_disabled
[       OK ] portability_analyser.curtask_disabled (534 ms)
[ RUN      ] portability_analyser.selective_probes_disabled
[       OK ] portability_analyser.selective_probes_disabled (819 ms)
[----------] 5 tests from portability_analyser (2693 ms total)

[----------] 3 tests from procmon
[ RUN      ] procmon.no_such_proc
[       OK ] procmon.no_such_proc (0 ms)
[ RUN      ] procmon.child_terminates
[       OK ] procmon.child_terminates (10 ms)
[ RUN      ] procmon.pid_string
[       OK ] procmon.pid_string (0 ms)
[----------] 3 tests from procmon (11 ms total)

[----------] 1 test from probe
[ RUN      ] probe.short_name
stdin:1:1-12: WARNING: attaching to uprobe target file '/bin/sh' but matched 2 binaries
uprobe:sh:f  1 
~~~~~~~~~~~
stdin:1:1-7: WARNING: attaching to uprobe target file '/bin/sh' but matched 2 binaries
u:sh:f  1 
~~~~~~
[       OK ] probe.short_name (4173 ms)
[----------] 1 test from probe (4173 ms total)

[----------] 1 test from resource_analyser
[ RUN      ] resource_analyser.multiple_lhist_bounds_in_single_map
[       OK ] resource_analyser.multiple_lhist_bounds_in_single_map (259 ms)
[----------] 1 test from resource_analyser (259 ms total)

[----------] 7 tests from required_resources
[ RUN      ] required_resources.round_trip_simple
[       OK ] required_resources.round_trip_simple (0 ms)
[ RUN      ] required_resources.round_trip_field_sized_type
[       OK ] required_resources.round_trip_field_sized_type (0 ms)
[ RUN      ] required_resources.round_trip_map_sized_type
[       OK ] required_resources.round_trip_map_sized_type (0 ms)
[ RUN      ] required_resources.round_trip_map_lhist_args
[       OK ] required_resources.round_trip_map_lhist_args (0 ms)
[ RUN      ] required_resources.round_trip_set_stack_type
[       OK ] required_resources.round_trip_set_stack_type (0 ms)
[ RUN      ] required_resources.round_trip_probes
[       OK ] required_resources.round_trip_probes (0 ms)
[ RUN      ] required_resources.round_trip_multiple_members
[       OK ] required_resources.round_trip_multiple_members (0 ms)
[----------] 7 tests from required_resources (0 ms total)

[----------] 2 tests from semantic_analyser_dwarf
[ RUN      ] semantic_analyser_dwarf.uprobe_args
[       OK ] semantic_analyser_dwarf.uprobe_args (2106 ms)
[ RUN      ] semantic_analyser_dwarf.parse_struct
[       OK ] semantic_analyser_dwarf.parse_struct (272 ms)
[----------] 2 tests from semantic_analyser_dwarf (2378 ms total)

[----------] 7 tests from tracepoint_format_parser
[ RUN      ] tracepoint_format_parser.tracepoint_struct
[       OK ] tracepoint_format_parser.tracepoint_struct (243 ms)
[ RUN      ] tracepoint_format_parser.array
[       OK ] tracepoint_format_parser.array (242 ms)
[ RUN      ] tracepoint_format_parser.data_loc
[       OK ] tracepoint_format_parser.data_loc (241 ms)
[ RUN      ] tracepoint_format_parser.adjust_integer_types
[       OK ] tracepoint_format_parser.adjust_integer_types (242 ms)
[ RUN      ] tracepoint_format_parser.padding
[       OK ] tracepoint_format_parser.padding (244 ms)
[ RUN      ] tracepoint_format_parser.tracepoint_struct_btf
[       OK ] tracepoint_format_parser.tracepoint_struct_btf (245 ms)
[ RUN      ] tracepoint_format_parser.args_field_access
[       OK ] tracepoint_format_parser.args_field_access (245 ms)
[----------] 7 tests from tracepoint_format_parser (1706 ms total)

[----------] 6 tests from utils
[ RUN      ] utils.split_string
[       OK ] utils.split_string (0 ms)
[ RUN      ] utils.wildcard_match
[       OK ] utils.wildcard_match (0 ms)
[ RUN      ] utils.resolve_binary_path
[       OK ] utils.resolve_binary_path (1 ms)
[ RUN      ] utils.abs_path
[       OK ] utils.abs_path (0 ms)
[ RUN      ] utils.get_cgroup_hierarchy_roots
[       OK ] utils.get_cgroup_hierarchy_roots (0 ms)
[ RUN      ] utils.get_cgroup_path_in_hierarchy
[       OK ] utils.get_cgroup_path_in_hierarchy (0 ms)
[----------] 6 tests from utils (2 ms total)

[----------] Global test environment tear-down
[==========] 355 tests from 16 test suites ran. (368107 ms total)
[  PASSED  ] 354 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] clang_parser.nested_struct_no_type

 1 FAILED TEST
[rongtao@localhost tests]$

以上是关于2022年5月25日 bpftrace_test ERROR的主要内容,如果未能解决你的问题,请参考以下文章

5月25日,阿里云开源 PolarDB-X 将迎来升级发布

我的创作纪念日 -- 2022年7月25日

我的创作纪念日 -- 2022年7月25日

芙蓉区抽化粪池 2022年03月25日09:40:32

2023年节日调休日历表

2022年4月30日~2022年5月1日 复盘