Commit a0d1bc3b authored by Brendan Gregg's avatar Brendan Gregg Committed by GitHub

Merge pull request #300 from Birch-san/test-single-compilation-unit

Improve build times of codegen tests, fix build-time exhaustion of virtual memory
parents 63249151 22397017
......@@ -6,6 +6,7 @@ add_executable(bpftrace_test
ast.cpp
bpftrace.cpp
clang_parser.cpp
codegen.cpp
main.cpp
parser.cpp
probe.cpp
......@@ -13,83 +14,6 @@ add_executable(bpftrace_test
tracepoint_format_parser.cpp
utils.cpp
codegen/general.cpp
codegen/bitshift_left.cpp
codegen/bitshift_right.cpp
codegen/builtin_arg.cpp
codegen/builtin_comm.cpp
codegen/builtin_cpu.cpp
codegen/builtin_ctx.cpp
codegen/builtin_curtask.cpp
codegen/builtin_func.cpp
codegen/builtin_func_wild.cpp
codegen/builtin_nsecs.cpp
codegen/builtin_pid_tid.cpp
codegen/builtin_probe.cpp
codegen/builtin_probe_wild.cpp
codegen/builtin_rand.cpp
codegen/builtin_retval.cpp
codegen/builtin_stack.cpp
codegen/builtin_uid_gid.cpp
codegen/builtin_username.cpp
codegen/builtin_ustack.cpp
codegen/call_avg.cpp
codegen/call_cgroup.cpp
codegen/call_clear.cpp
codegen/call_count.cpp
codegen/call_delete.cpp
codegen/call_exit.cpp
codegen/call_hist.cpp
codegen/call_lhist.cpp
codegen/call_max.cpp
codegen/call_min.cpp
codegen/call_print.cpp
codegen/call_printf.cpp
codegen/call_reg.cpp
codegen/call_stats.cpp
codegen/call_str.cpp
codegen/call_sum.cpp
codegen/call_system.cpp
codegen/call_time.cpp
codegen/call_usym_key.cpp
codegen/call_zero.cpp
codegen/dereference.cpp
codegen/empty_function.cpp
codegen/if_else_printf.cpp
codegen/if_else_variable.cpp
codegen/if_nested_printf.cpp
codegen/if_printf.cpp
codegen/if_variable.cpp
codegen/int_propagation.cpp
codegen/logical_and.cpp
codegen/logical_or.cpp
codegen/map_assign_int.cpp
codegen/map_assign_string.cpp
codegen/map_key_int.cpp
codegen/map_key_string.cpp
codegen/multiple_identical_probes.cpp
codegen/pred_binop.cpp
codegen/string_equal_comparison.cpp
codegen/string_not_equal_comparison.cpp
codegen/string_propagation.cpp
codegen/struct_char.cpp
codegen/struct_integer_ptr.cpp
codegen/struct_integers.cpp
codegen/struct_long.cpp
codegen/struct_nested_struct_anon.cpp
codegen/struct_nested_struct_named.cpp
codegen/struct_nested_struct_ptr_named.cpp
codegen/struct_save.cpp
codegen/struct_save_nested.cpp
codegen/struct_save_string.cpp
codegen/struct_short.cpp
codegen/struct_string_array.cpp
codegen/struct_string_ptr.cpp
codegen/ternary_int.cpp
codegen/ternary_str.cpp
codegen/unroll.cpp
codegen/variable.cpp
${CMAKE_SOURCE_DIR}/src/attached_probe.cpp
${CMAKE_SOURCE_DIR}/src/bpftrace.cpp
${CMAKE_SOURCE_DIR}/src/clang_parser.cpp
......
// https://github.com/iovisor/bpftrace/issues/229
// this file exists solely to gather all the codegen tests into one compilation unit, for build performance
#include "codegen/general.cpp"
#include "codegen/bitshift_left.cpp"
#include "codegen/bitshift_right.cpp"
#include "codegen/builtin_arg.cpp"
#include "codegen/builtin_comm.cpp"
#include "codegen/builtin_cpu.cpp"
#include "codegen/builtin_ctx.cpp"
#include "codegen/builtin_curtask.cpp"
#include "codegen/builtin_func.cpp"
#include "codegen/builtin_func_wild.cpp"
#include "codegen/builtin_nsecs.cpp"
#include "codegen/builtin_pid_tid.cpp"
#include "codegen/builtin_probe.cpp"
#include "codegen/builtin_probe_wild.cpp"
#include "codegen/builtin_rand.cpp"
#include "codegen/builtin_retval.cpp"
#include "codegen/builtin_stack.cpp"
#include "codegen/builtin_uid_gid.cpp"
#include "codegen/builtin_username.cpp"
#include "codegen/builtin_ustack.cpp"
#include "codegen/call_avg.cpp"
#include "codegen/call_cgroup.cpp"
#include "codegen/call_clear.cpp"
#include "codegen/call_count.cpp"
#include "codegen/call_delete.cpp"
#include "codegen/call_exit.cpp"
#include "codegen/call_hist.cpp"
#include "codegen/call_lhist.cpp"
#include "codegen/call_max.cpp"
#include "codegen/call_min.cpp"
#include "codegen/call_print.cpp"
#include "codegen/call_printf.cpp"
#include "codegen/call_reg.cpp"
#include "codegen/call_stats.cpp"
#include "codegen/call_str.cpp"
#include "codegen/call_sum.cpp"
#include "codegen/call_system.cpp"
#include "codegen/call_time.cpp"
#include "codegen/call_usym_key.cpp"
#include "codegen/call_zero.cpp"
#include "codegen/dereference.cpp"
#include "codegen/empty_function.cpp"
#include "codegen/if_else_printf.cpp"
#include "codegen/if_else_variable.cpp"
#include "codegen/if_nested_printf.cpp"
#include "codegen/if_printf.cpp"
#include "codegen/if_variable.cpp"
#include "codegen/int_propagation.cpp"
#include "codegen/logical_and.cpp"
#include "codegen/logical_or.cpp"
#include "codegen/map_assign_int.cpp"
#include "codegen/map_assign_string.cpp"
#include "codegen/map_key_int.cpp"
#include "codegen/map_key_string.cpp"
#include "codegen/multiple_identical_probes.cpp"
#include "codegen/pred_binop.cpp"
#include "codegen/string_equal_comparison.cpp"
#include "codegen/string_not_equal_comparison.cpp"
#include "codegen/string_propagation.cpp"
#include "codegen/struct_char.cpp"
#include "codegen/struct_integer_ptr.cpp"
#include "codegen/struct_integers.cpp"
#include "codegen/struct_long.cpp"
#include "codegen/struct_nested_struct_anon.cpp"
#include "codegen/struct_nested_struct_named.cpp"
#include "codegen/struct_nested_struct_ptr_named.cpp"
#include "codegen/struct_save.cpp"
#include "codegen/struct_save_nested.cpp"
#include "codegen/struct_save_string.cpp"
#include "codegen/struct_short.cpp"
#include "codegen/struct_string_array.cpp"
#include "codegen/struct_string_ptr.cpp"
#include "codegen/ternary_int.cpp"
#include "codegen/ternary_str.cpp"
#include "codegen/unroll.cpp"
#include "codegen/variable.cpp"
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