No public description PiperOrigin-RevId: 756439597
diff --git a/centipede/runner_dl_info.cc b/centipede/runner_dl_info.cc index 33d3964..6340007 100644 --- a/centipede/runner_dl_info.cc +++ b/centipede/runner_dl_info.cc
@@ -196,7 +196,7 @@ int g_some_global; // Used in DlIteratePhdrCallback. // Returns the size of the DL represented by `info`. -size_t DlSize(absl::Nonnull<struct dl_phdr_info *> info) { +size_t DlSize(struct dl_phdr_info *absl_nonnull info) { size_t size = 0; // Iterate program headers. for (int j = 0; j < info->dlpi_phnum; ++j) { @@ -233,8 +233,8 @@ // nullptr`. The code assumes that the main binary is the first one to be // iterated on. If the desired library is found, sets result.start_address and // result.size, otherwise leaves result unchanged. -int DlIteratePhdrCallback(absl::Nonnull<struct dl_phdr_info *> info, - size_t size, void *absl_nonnull param_voidptr) { +int DlIteratePhdrCallback(struct dl_phdr_info *absl_nonnull info, size_t size, + void *absl_nonnull param_voidptr) { const DlCallbackParam *param = static_cast<DlCallbackParam *>(param_voidptr); DlInfo &result = param->result; RunnerCheck(!result.IsSet(), "result is already set"); @@ -284,7 +284,7 @@ // See man dl_iterate_phdr. // `param_voidptr` is cast to a `DlCallbackParam *param`. // Looks for the dynamic library who's address range contains `param->pc`. -int DlIteratePhdrPCCallback(absl::Nonnull<struct dl_phdr_info *> info, +int DlIteratePhdrPCCallback(struct dl_phdr_info *absl_nonnull info, size_t unused, void *absl_nonnull param_voidptr) { const DlCallbackParam *param = static_cast<DlCallbackParam *>(param_voidptr); DlInfo &result = param->result;
diff --git a/centipede/rusage_profiler.h b/centipede/rusage_profiler.h index 2eca02b..7e12b96 100644 --- a/centipede/rusage_profiler.h +++ b/centipede/rusage_profiler.h
@@ -230,7 +230,7 @@ // TODO(ussuri): Switch to absl::SourceLocation or std::source_location. struct SourceLocation { explicit SourceLocation() = default; - SourceLocation(absl::Nonnull<const char*> file, int line) + SourceLocation(const char* absl_nonnull file, int line) : file{file}, line{line} {} const char* const file = "<unknown>"; @@ -393,7 +393,7 @@ // Prints to `sink` a report consisting of chronological charts for each of // the tracked metrics recorded since this profiler's construction up to this // point. - void GenerateReport(absl::Nonnull<ReportSink*> report_sink) const; + void GenerateReport(ReportSink* absl_nonnull report_sink) const; // Logs the report returned by GenerateReport(). The log message's source // location is set to `location`: as a rule of thumb, pass