Skip to content

Commit a3e79f7

Browse files
yamilmoralescopybara-github
authored andcommitted
No public description
PiperOrigin-RevId: 781188275
1 parent e22ceff commit a3e79f7

File tree

10 files changed

+927
-618
lines changed

10 files changed

+927
-618
lines changed

centipede/BUILD

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,15 @@ cc_library(
115115
hdrs = ["int_utils.h"],
116116
)
117117

118+
cc_library(
119+
name = "flag_util",
120+
srcs = ["flag_util.cc"],
121+
hdrs = ["flag_util.h"],
122+
deps = [
123+
"@abseil-cpp//absl/base:nullability",
124+
],
125+
)
126+
118127
cc_library(
119128
name = "rolling_hash",
120129
hdrs = ["rolling_hash.h"],
@@ -1024,6 +1033,8 @@ cc_library(
10241033
# e.g. feature.cc. These files are compiled by the engine and the runner
10251034
# separately, with different compiler flags.
10261035
RUNNER_SOURCES_NO_MAIN = [
1036+
"coverage_state.cc",
1037+
"coverage_state.h",
10271038
"byte_array_mutator.cc",
10281039
"byte_array_mutator.h",
10291040
"callstack.h",
@@ -1210,6 +1221,35 @@ cc_library(
12101221
deps = ["@abseil-cpp//absl/flags:flag"],
12111222
)
12121223

1224+
cc_library(
1225+
name = "coverage_state",
1226+
srcs = [
1227+
"coverage_state.cc",
1228+
"runner_dl_info.cc",
1229+
"runner_dl_info.h",
1230+
"runner_interceptors.cc",
1231+
"runner_sancov.cc",
1232+
"runner_sancov_object.cc",
1233+
"runner_sancov_object.h",
1234+
"runner_utils.cc",
1235+
"runner_utils.h",
1236+
],
1237+
hdrs = ["coverage_state.h"],
1238+
deps = [
1239+
":callstack",
1240+
":feature",
1241+
":foreach_nonzero",
1242+
":int_utils",
1243+
":pc_info",
1244+
":reverse_pc_table",
1245+
":runner_cmp_trace",
1246+
":runner_result",
1247+
"@abseil-cpp//absl/base:core_headers",
1248+
"@abseil-cpp//absl/base:nullability",
1249+
"@abseil-cpp//absl/numeric:bits",
1250+
],
1251+
)
1252+
12131253
################################################################################
12141254
# General-purpose testing utilities
12151255
################################################################################

centipede/control_flow.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,12 @@
4545
namespace fuzztest::internal {
4646

4747
PCTable ReadPcTableFromFile(std::string_view file_path) {
48+
LOG(INFO) << "ReadPcTableFromFile: " << file_path << "\n";
4849
ByteArray pc_infos_as_bytes;
4950
ReadFromLocalFile(file_path, pc_infos_as_bytes);
5051
CHECK_EQ(pc_infos_as_bytes.size() % sizeof(PCInfo), 0);
52+
LOG(INFO) << "size of pc_infos_as_bytes: " << pc_infos_as_bytes.size()
53+
<< "\n";
5154
size_t pc_table_size = pc_infos_as_bytes.size() / sizeof(PCInfo);
5255
const auto *pc_infos = reinterpret_cast<PCInfo *>(pc_infos_as_bytes.data());
5356
PCTable pc_table{pc_infos, pc_infos + pc_table_size};

0 commit comments

Comments
 (0)