grpc/src/cpp/server/load_reporter
Austin Schuh d30404868f
ARM and -Wextra fixups (#19141)
* Make generated code compile with -Wunused-parameters

-Wunused-parameters is turned on by -Werror -Wextra.  gRPC code
generation creates header files with unused parameters.  So let's modify
the generator to not generate code which will make -Wunused-parameters
unhappy.

* Fix unsigned vs signed comparisons and 32 bit string formats

Fix unsigned vs signed comparison warnings.

For 64 bit numbers printed in gRPC, the string formats assume that you
are running on a 64 bit machine.  Use inttypes.h to make it portable.
Also, use size_t format strings for the same reason.

* Fix unaligned memory access

cost_entry_ptr has no alignment guarentees that ubsan can find.  So it
fails the test with an alignment problem.  Use memcopy to read the data
from the pointer to fix this.

* Fix undefined behavior with memcpy and memcmp

Passing in a 0 length piece of data and a null pointer is undefined
behavior.  If the length is 0, don't pass it in.  This fixes ubsan
failures.

* Clang-format

* Automated change: Fix sanity tests
2021-09-27 04:54:05 -07:00
..
constants.h Fix clang-tidy errors 2020-10-15 16:07:25 -07:00
get_cpu_stats.h Add load reporter 2018-06-21 13:21:02 -07:00
get_cpu_stats_linux.cc ARM and -Wextra fixups (#19141) 2021-09-27 04:54:05 -07:00
get_cpu_stats_macos.cc Add load reporter 2018-06-21 13:21:02 -07:00
get_cpu_stats_unsupported.cc Add load reporter 2018-06-21 13:21:02 -07:00
get_cpu_stats_windows.cc Adjust include order per style guide (#27175) 2021-09-08 12:14:44 -07:00
load_data_store.cc Adjust include order per style guide (#27175) 2021-09-08 12:14:44 -07:00
load_data_store.h Replaced grpc::string with std::string 2020-06-29 17:56:36 -07:00
load_reporter.cc Adjust include order per style guide (#27175) 2021-09-08 12:14:44 -07:00
load_reporter.h Adjust include order per style guide (#27175) 2021-09-08 12:14:44 -07:00
load_reporter_async_service_impl.cc Adjust include order per style guide (#27175) 2021-09-08 12:14:44 -07:00
load_reporter_async_service_impl.h Fix by tidy-modernize-use-override 2020-10-16 14:01:06 -07:00
load_reporting_service_server_builder_option.cc Move LoadReportingServiceServerBuilderOption from ::grpc_impl to ::grpc 2020-07-13 14:50:33 -07:00
load_reporting_service_server_builder_plugin.cc Fix unused-parameter warning 2021-01-19 18:18:09 -08:00
load_reporting_service_server_builder_plugin.h Fix unused-parameter warning 2021-01-19 18:18:09 -08:00
util.cc Adjust include order per style guide (#27175) 2021-09-08 12:14:44 -07:00