Better name

pull/13026/head
Craig Tiller 7 years ago
parent d3d709a10f
commit 694580faee
  1. 2
      include/grpc/grpc.h
  2. 2
      src/core/ext/filters/client_channel/client_channel.cc
  3. 2
      src/core/ext/filters/client_channel/client_channel.h
  4. 2
      src/core/ext/filters/client_channel/lb_policy.cc
  5. 2
      src/core/ext/filters/client_channel/lb_policy.h
  6. 2
      src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc
  7. 2
      src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc
  8. 2
      src/core/ext/filters/client_channel/lb_policy/round_robin/round_robin.cc
  9. 2
      src/core/ext/filters/client_channel/resolver.cc
  10. 2
      src/core/ext/filters/client_channel/resolver.h
  11. 6
      src/core/ext/transport/chttp2/transport/chttp2_transport.cc
  12. 8
      src/core/ext/transport/chttp2/transport/chttp2_transport.h
  13. 2
      src/core/ext/transport/chttp2/transport/hpack_encoder.cc
  14. 2
      src/core/ext/transport/chttp2/transport/hpack_table.cc
  15. 4
      src/core/ext/transport/chttp2/transport/internal.h
  16. 2
      src/core/ext/transport/chttp2/transport/stream_lists.cc
  17. 2
      src/core/ext/transport/inproc/inproc_plugin.cc
  18. 2
      src/core/ext/transport/inproc/inproc_transport.h
  19. 2
      src/core/lib/channel/channel_stack.cc
  20. 2
      src/core/lib/channel/channel_stack.h
  21. 2
      src/core/lib/channel/channel_stack_builder.cc
  22. 2
      src/core/lib/channel/channel_stack_builder.h
  23. 16
      src/core/lib/debug/trace.cc
  24. 10
      src/core/lib/debug/trace.h
  25. 2
      src/core/lib/http/parser.cc
  26. 2
      src/core/lib/http/parser.h
  27. 2
      src/core/lib/iomgr/call_combiner.cc
  28. 2
      src/core/lib/iomgr/call_combiner.h
  29. 2
      src/core/lib/iomgr/closure.cc
  30. 2
      src/core/lib/iomgr/closure.h
  31. 2
      src/core/lib/iomgr/combiner.cc
  32. 2
      src/core/lib/iomgr/combiner.h
  33. 2
      src/core/lib/iomgr/error.cc
  34. 2
      src/core/lib/iomgr/error.h
  35. 2
      src/core/lib/iomgr/ev_epollex_linux.cc
  36. 4
      src/core/lib/iomgr/ev_posix.cc
  37. 2
      src/core/lib/iomgr/ev_posix.h
  38. 2
      src/core/lib/iomgr/ev_windows.cc
  39. 2
      src/core/lib/iomgr/executor.cc
  40. 2
      src/core/lib/iomgr/lockfree_event.cc
  41. 2
      src/core/lib/iomgr/pollset.h
  42. 2
      src/core/lib/iomgr/pollset_uv.cc
  43. 2
      src/core/lib/iomgr/pollset_windows.cc
  44. 2
      src/core/lib/iomgr/resource_quota.cc
  45. 2
      src/core/lib/iomgr/resource_quota.h
  46. 2
      src/core/lib/iomgr/tcp_client_posix.cc
  47. 2
      src/core/lib/iomgr/tcp_client_uv.cc
  48. 2
      src/core/lib/iomgr/tcp_posix.cc
  49. 2
      src/core/lib/iomgr/tcp_posix.h
  50. 2
      src/core/lib/iomgr/tcp_uv.cc
  51. 2
      src/core/lib/iomgr/tcp_uv.h
  52. 2
      src/core/lib/iomgr/tcp_windows.cc
  53. 4
      src/core/lib/iomgr/timer_generic.cc
  54. 2
      src/core/lib/iomgr/timer_manager.cc
  55. 4
      src/core/lib/iomgr/timer_uv.cc
  56. 2
      src/core/lib/security/context/security_context.cc
  57. 2
      src/core/lib/security/context/security_context.h
  58. 2
      src/core/lib/security/credentials/plugin/plugin_credentials.cc
  59. 2
      src/core/lib/security/credentials/plugin/plugin_credentials.h
  60. 2
      src/core/lib/security/transport/secure_endpoint.cc
  61. 2
      src/core/lib/security/transport/secure_endpoint.h
  62. 2
      src/core/lib/security/transport/security_connector.cc
  63. 2
      src/core/lib/security/transport/security_connector.h
  64. 2
      src/core/lib/surface/alarm.cc
  65. 2
      src/core/lib/surface/alarm_internal.h
  66. 2
      src/core/lib/surface/api_trace.cc
  67. 2
      src/core/lib/surface/api_trace.h
  68. 4
      src/core/lib/surface/call.cc
  69. 4
      src/core/lib/surface/call.h
  70. 10
      src/core/lib/surface/completion_queue.cc
  71. 10
      src/core/lib/surface/completion_queue.h
  72. 2
      src/core/lib/surface/server.cc
  73. 2
      src/core/lib/surface/server.h
  74. 2
      src/core/lib/transport/bdp_estimator.cc
  75. 2
      src/core/lib/transport/bdp_estimator.h
  76. 2
      src/core/lib/transport/connectivity_state.cc
  77. 2
      src/core/lib/transport/connectivity_state.h
  78. 2
      src/core/lib/transport/metadata.cc
  79. 2
      src/core/lib/transport/metadata.h
  80. 2
      src/core/lib/transport/transport.cc
  81. 2
      src/core/lib/transport/transport.h
  82. 2
      src/core/tsi/transport_security.cc
  83. 2
      src/core/tsi/transport_security.h
  84. 2
      src/core/tsi/transport_security_interface.h

@ -411,7 +411,7 @@ GRPCAPI void grpc_server_destroy(grpc_server *server);
/** Enable or disable a tracer.
Tracers (usually controlled by the environment variable GRPC_TRACE)
TraceFlags (usually controlled by the environment variable GRPC_TRACE)
allow printf-style debugging on GRPC internals, and are useful for
tracking down problems in the field.

@ -55,7 +55,7 @@
/* Client channel implementation */
grpc_core::Tracer grpc_client_channel_trace(false, "client_channel");
grpc_core::TraceFlag grpc_client_channel_trace(false, "client_channel");
/*************************************************************************
* METHOD-CONFIG TABLE

@ -23,7 +23,7 @@
#include "src/core/ext/filters/client_channel/resolver.h"
#include "src/core/lib/channel/channel_stack.h"
extern grpc_core::Tracer grpc_client_channel_trace;
extern grpc_core::TraceFlag grpc_client_channel_trace;
// Channel arg key for server URI string.
#define GRPC_ARG_SERVER_URI "grpc.server_uri"

@ -22,7 +22,7 @@
#define WEAK_REF_BITS 16
#ifndef NDEBUG
grpc_core::Tracer grpc_trace_lb_policy_refcount(false, "lb_policy_refcount");
grpc_core::TraceFlag grpc_trace_lb_policy_refcount(false, "lb_policy_refcount");
#endif
void grpc_lb_policy_init(grpc_lb_policy *policy,

@ -34,7 +34,7 @@ typedef struct grpc_lb_policy_vtable grpc_lb_policy_vtable;
typedef struct grpc_lb_policy_args grpc_lb_policy_args;
#ifndef NDEBUG
extern grpc_core::Tracer grpc_trace_lb_policy_refcount;
extern grpc_core::TraceFlag grpc_trace_lb_policy_refcount;
#endif
struct grpc_lb_policy {

@ -126,7 +126,7 @@
#define GRPC_GRPCLB_RECONNECT_JITTER 0.2
#define GRPC_GRPCLB_DEFAULT_FALLBACK_TIMEOUT_MS 10000
grpc_core::Tracer grpc_lb_glb_trace(false, "glb");
grpc_core::TraceFlag grpc_lb_glb_trace(false, "glb");
/* add lb_token of selected subchannel (address) to the call's initial
* metadata */

@ -28,7 +28,7 @@
#include "src/core/lib/iomgr/sockaddr_utils.h"
#include "src/core/lib/transport/connectivity_state.h"
grpc_core::Tracer grpc_lb_pick_first_trace(false, "pick_first");
grpc_core::TraceFlag grpc_lb_pick_first_trace(false, "pick_first");
typedef struct pending_pick {
struct pending_pick *next;

@ -38,7 +38,7 @@
#include "src/core/lib/transport/connectivity_state.h"
#include "src/core/lib/transport/static_metadata.h"
grpc_core::Tracer grpc_lb_round_robin_trace(false, "round_robin");
grpc_core::TraceFlag grpc_lb_round_robin_trace(false, "round_robin");
/** List of entities waiting for a pick.
*

@ -20,7 +20,7 @@
#include "src/core/lib/iomgr/combiner.h"
#ifndef NDEBUG
grpc_core::Tracer grpc_trace_resolver_refcount(false, "resolver_refcount");
grpc_core::TraceFlag grpc_trace_resolver_refcount(false, "resolver_refcount");
#endif
void grpc_resolver_init(grpc_resolver *resolver,

@ -30,7 +30,7 @@ typedef struct grpc_resolver grpc_resolver;
typedef struct grpc_resolver_vtable grpc_resolver_vtable;
#ifndef NDEBUG
extern grpc_core::Tracer grpc_trace_resolver_refcount;
extern grpc_core::TraceFlag grpc_trace_resolver_refcount;
#endif
/** \a grpc_resolver provides \a grpc_channel_args objects to its caller */

@ -90,11 +90,11 @@ static int g_default_max_pings_without_data = DEFAULT_MAX_PINGS_BETWEEN_DATA;
static int g_default_max_ping_strikes = DEFAULT_MAX_PING_STRIKES;
#define MAX_CLIENT_STREAM_ID 0x7fffffffu
grpc_core::Tracer grpc_http_trace(false, "http");
grpc_core::Tracer grpc_flowctl_trace(false, "flowctl");
grpc_core::TraceFlag grpc_http_trace(false, "http");
grpc_core::TraceFlag grpc_flowctl_trace(false, "flowctl");
#ifndef NDEBUG
grpc_core::Tracer grpc_trace_chttp2_refcount(false, "chttp2_refcount");
grpc_core::TraceFlag grpc_trace_chttp2_refcount(false, "chttp2_refcount");
#endif
/* forward declarations of various callbacks that we'll build closures around */

@ -27,12 +27,12 @@
extern "C" {
#endif
extern grpc_core::Tracer grpc_http_trace;
extern grpc_core::Tracer grpc_flowctl_trace;
extern grpc_core::Tracer grpc_trace_http2_stream_state;
extern grpc_core::TraceFlag grpc_http_trace;
extern grpc_core::TraceFlag grpc_flowctl_trace;
extern grpc_core::TraceFlag grpc_trace_http2_stream_state;
#ifndef NDEBUG
extern grpc_core::Tracer grpc_trace_chttp2_refcount;
extern grpc_core::TraceFlag grpc_trace_chttp2_refcount;
#endif
grpc_transport *grpc_create_chttp2_transport(

@ -57,7 +57,7 @@ static const grpc_slice terminal_slice = {
{{0, 0}} /* data.refcounted */
};
extern grpc_core::Tracer grpc_http_trace;
extern grpc_core::TraceFlag grpc_http_trace;
typedef struct {
int is_first_frame;

@ -28,7 +28,7 @@
#include "src/core/lib/debug/trace.h"
#include "src/core/lib/support/murmur_hash.h"
extern grpc_core::Tracer grpc_http_trace;
extern grpc_core::TraceFlag grpc_http_trace;
static struct {
const char *key;

@ -678,8 +678,8 @@ void grpc_chttp2_complete_closure_step(grpc_exec_ctx *exec_ctx,
#define GRPC_CHTTP2_CLIENT_CONNECT_STRLEN \
(sizeof(GRPC_CHTTP2_CLIENT_CONNECT_STRING) - 1)
extern grpc_core::Tracer grpc_http_trace;
extern grpc_core::Tracer grpc_flowctl_trace;
extern grpc_core::TraceFlag grpc_http_trace;
extern grpc_core::TraceFlag grpc_flowctl_trace;
#define GRPC_CHTTP2_IF_TRACING(stmt) \
if (!(GRPC_TRACER_ON(grpc_http_trace))) \

@ -39,7 +39,7 @@ static const char *stream_list_id_string(grpc_chttp2_stream_list_id id) {
GPR_UNREACHABLE_CODE(return "unknown");
}
grpc_core::Tracer grpc_trace_http2_stream_state(false, "http2_stream_state");
grpc_core::TraceFlag grpc_trace_http2_stream_state(false, "http2_stream_state");
/* core list management */

@ -19,7 +19,7 @@
#include "src/core/ext/transport/inproc/inproc_transport.h"
#include "src/core/lib/debug/trace.h"
grpc_core::Tracer grpc_inproc_trace(false, "inproc");
grpc_core::TraceFlag grpc_inproc_trace(false, "inproc");
extern "C" void grpc_inproc_plugin_init(void) { grpc_inproc_transport_init(); }

@ -29,7 +29,7 @@ grpc_channel *grpc_inproc_channel_create(grpc_server *server,
grpc_channel_args *args,
void *reserved);
extern grpc_core::Tracer grpc_inproc_trace;
extern grpc_core::TraceFlag grpc_inproc_trace;
void grpc_inproc_transport_init(void);
void grpc_inproc_transport_shutdown(void);

@ -23,7 +23,7 @@
#include <stdlib.h>
#include <string.h>
grpc_core::Tracer grpc_trace_channel(false, "channel");
grpc_core::TraceFlag grpc_trace_channel(false, "channel");
/* Memory layouts.

@ -285,7 +285,7 @@ void grpc_call_log_op(const char *file, int line, gpr_log_severity severity,
grpc_call_element *elem,
grpc_transport_stream_op_batch *op);
extern grpc_core::Tracer grpc_trace_channel;
extern grpc_core::TraceFlag grpc_trace_channel;
#define GRPC_CALL_LOG_OP(sev, elem, op) \
if (grpc_trace_channel.enabled()) grpc_call_log_op(sev, elem, op)

@ -23,7 +23,7 @@
#include <grpc/support/alloc.h>
#include <grpc/support/string_util.h>
grpc_core::Tracer grpc_trace_channel_stack_builder(false,
grpc_core::TraceFlag grpc_trace_channel_stack_builder(false,
"channel_stack_builder");
typedef struct filter_node {

@ -160,7 +160,7 @@ grpc_error *grpc_channel_stack_builder_finish(
void grpc_channel_stack_builder_destroy(grpc_exec_ctx *exec_ctx,
grpc_channel_stack_builder *builder);
extern grpc_core::Tracer grpc_trace_channel_stack_builder;
extern grpc_core::TraceFlag grpc_trace_channel_stack_builder;
#ifdef __cplusplus
}

@ -29,21 +29,21 @@ int grpc_tracer_set_enabled(const char *name, int enabled);
namespace grpc_core {
Tracer::Tracer(bool default_enabled, const char *name)
TraceFlag::TraceFlag(bool default_enabled, const char *name)
: next_tracer_(root_tracer_), name_(name), value_(default_enabled) {
root_tracer_ = this;
}
void Tracer::List() {
void TraceFlag::List() {
gpr_log(GPR_DEBUG, "available tracers:");
Tracer *t;
TraceFlag *t;
for (t = root_tracer_; t != nullptr; t = t->next_tracer_) {
gpr_log(GPR_DEBUG, "\t%s", t->name_);
}
}
bool Tracer::Set(const char *name, bool enabled) {
Tracer *t;
bool TraceFlag::Set(const char *name, bool enabled) {
TraceFlag *t;
if (0 == strcmp(name, "all")) {
for (t = root_tracer_; t; t = t->next_tracer_) {
t->set_enabled(enabled);
@ -107,9 +107,9 @@ static void parse(const char *s) {
for (i = 0; i < nstrings; i++) {
if (strings[i][0] == '-') {
grpc_core::Tracer::Set(strings[i] + 1, false);
grpc_core::TraceFlag::Set(strings[i] + 1, false);
} else {
grpc_core::Tracer::Set(strings[i], true);
grpc_core::TraceFlag::Set(strings[i], true);
}
}
@ -130,5 +130,5 @@ void grpc_tracer_init(const char *env_var) {
void grpc_tracer_shutdown(void) {}
int grpc_tracer_set_enabled(const char *name, int enabled) {
return grpc_core::Tracer::Set(name, enabled != 0);
return grpc_core::TraceFlag::Set(name, enabled != 0);
}

@ -44,10 +44,10 @@ void grpc_tracer_shutdown(void);
namespace grpc_core {
class Tracer {
class TraceFlag {
public:
Tracer(bool default_enabled, const char *name);
~Tracer();
TraceFlag(bool default_enabled, const char *name);
~TraceFlag();
static bool Set(const char *tracer, bool enabled);
@ -70,8 +70,8 @@ class Tracer {
#endif
}
static Tracer *root_tracer_;
Tracer *next_tracer_;
static TraceFlag *root_tracer_;
TraceFlag *next_tracer_;
const char *const name_;
#ifdef GRPC_THREADSAFE_TRACER
gpr_atm value_;

@ -25,7 +25,7 @@
#include <grpc/support/log.h>
#include <grpc/support/useful.h>
grpc_core::Tracer grpc_http1_trace(false, "http1");
grpc_core::TraceFlag grpc_http1_trace(false, "http1");
static char *buf2str(void *buffer, size_t length) {
char *out = (char *)gpr_malloc(length + 1);

@ -111,7 +111,7 @@ grpc_error *grpc_http_parser_eof(grpc_http_parser *parser);
void grpc_http_request_destroy(grpc_http_request *request);
void grpc_http_response_destroy(grpc_http_response *response);
extern grpc_core::Tracer grpc_http1_trace;
extern grpc_core::TraceFlag grpc_http1_trace;
#ifdef __cplusplus
}

@ -24,7 +24,7 @@
#include "src/core/lib/debug/stats.h"
#include "src/core/lib/profiling/timers.h"
grpc_core::Tracer grpc_call_combiner_trace(false, "call_combiner");
grpc_core::TraceFlag grpc_call_combiner_trace(false, "call_combiner");
static grpc_error* decode_cancel_state_error(gpr_atm cancel_state) {
if (cancel_state & 1) {

@ -40,7 +40,7 @@ extern "C" {
// when it is done with the action that was kicked off by the original
// callback.
extern grpc_core::Tracer grpc_call_combiner_trace;
extern grpc_core::TraceFlag grpc_call_combiner_trace;
typedef struct {
gpr_atm size; // size_t, num closures in queue or currently executing

@ -25,7 +25,7 @@
#include "src/core/lib/profiling/timers.h"
#ifndef NDEBUG
grpc_core::Tracer grpc_trace_closure(false, "closure");
grpc_core::TraceFlag grpc_trace_closure(false, "closure");
#endif
#ifndef NDEBUG

@ -34,7 +34,7 @@ struct grpc_closure;
typedef struct grpc_closure grpc_closure;
#ifndef NDEBUG
extern grpc_core::Tracer grpc_trace_closure;
extern grpc_core::TraceFlag grpc_trace_closure;
#endif
typedef struct grpc_closure_list {

@ -29,7 +29,7 @@
#include "src/core/lib/iomgr/executor.h"
#include "src/core/lib/profiling/timers.h"
grpc_core::Tracer grpc_combiner_trace(false, "combiner");
grpc_core::TraceFlag grpc_combiner_trace(false, "combiner");
#define GRPC_COMBINER_TRACE(fn) \
do { \

@ -65,7 +65,7 @@ grpc_closure_scheduler *grpc_combiner_finally_scheduler(grpc_combiner *lock);
bool grpc_combiner_continue_exec_ctx(grpc_exec_ctx *exec_ctx);
extern grpc_core::Tracer grpc_combiner_trace;
extern grpc_core::TraceFlag grpc_combiner_trace;
#ifdef __cplusplus
}

@ -38,7 +38,7 @@
#include "src/core/lib/slice/slice_internal.h"
#ifndef NDEBUG
grpc_core::Tracer grpc_trace_error_refcount(false, "error_refcount");
grpc_core::TraceFlag grpc_trace_error_refcount(false, "error_refcount");
#endif
static const char *error_int_name(grpc_error_ints key) {

@ -39,7 +39,7 @@ extern "C" {
typedef struct grpc_error grpc_error;
#ifndef NDEBUG
extern grpc_core::Tracer grpc_trace_error_refcount;
extern grpc_core::TraceFlag grpc_trace_error_refcount;
#endif
typedef enum {

@ -58,7 +58,7 @@
#define MAX_EPOLL_EVENTS_HANDLED_EACH_POLL_CALL 5
#ifndef NDEBUG
grpc_core::Tracer grpc_trace_pollable_refcount(false, "pollable_refcount");
grpc_core::TraceFlag grpc_trace_pollable_refcount(false, "pollable_refcount");
#endif
/*******************************************************************************

@ -36,11 +36,11 @@
#include "src/core/lib/iomgr/ev_poll_posix.h"
#include "src/core/lib/support/env.h"
grpc_core::Tracer grpc_polling_trace(false,
grpc_core::TraceFlag grpc_polling_trace(false,
"polling"); /* Disabled by default */
#ifndef NDEBUG
grpc_core::Tracer grpc_trace_fd_refcount(false, "fd_refcount");
grpc_core::TraceFlag grpc_trace_fd_refcount(false, "fd_refcount");
#endif
/** Default poll() function - a pointer so that it can be overridden by some

@ -31,7 +31,7 @@
extern "C" {
#endif
extern grpc_core::Tracer grpc_polling_trace; /* Disabled by default */
extern grpc_core::TraceFlag grpc_polling_trace; /* Disabled by default */
typedef struct grpc_fd grpc_fd;

@ -22,7 +22,7 @@
#include "src/core/lib/debug/trace.h"
grpc_core::Tracer grpc_polling_trace(false,
grpc_core::TraceFlag grpc_polling_trace(false,
"polling"); /* Disabled by default */
#endif // GRPC_WINSOCK_SOCKET

@ -51,7 +51,7 @@ static gpr_spinlock g_adding_thread_lock = GPR_SPINLOCK_STATIC_INITIALIZER;
GPR_TLS_DECL(g_this_thread_state);
static grpc_core::Tracer executor_trace(false, "executor");
static grpc_core::TraceFlag executor_trace(false, "executor");
static void executor_thread(void *arg);

@ -22,7 +22,7 @@
#include "src/core/lib/debug/trace.h"
extern grpc_core::Tracer grpc_polling_trace;
extern grpc_core::TraceFlag grpc_polling_trace;
/* 'state' holds the to call when the fd is readable or writable respectively.
It can contain one of the following values:

@ -30,7 +30,7 @@ extern "C" {
#endif
#ifndef NDEBUG
extern grpc_core::Tracer grpc_trace_fd_refcount;
extern grpc_core::TraceFlag grpc_trace_fd_refcount;
#endif
/* A grpc_pollset is a set of file descriptors that a higher level item is

@ -35,7 +35,7 @@
#include "src/core/lib/debug/trace.h"
#ifndef NDEBUG
grpc_core::Tracer grpc_trace_fd_refcount(false, "fd_refcount");
grpc_core::TraceFlag grpc_trace_fd_refcount(false, "fd_refcount");
#endif
struct grpc_pollset {

@ -31,7 +31,7 @@
#define GRPC_POLLSET_KICK_BROADCAST ((grpc_pollset_worker *)1)
#ifndef NDEBUG
grpc_core::Tracer grpc_trace_fd_refcount(false, "fd_refcount");
grpc_core::TraceFlag grpc_trace_fd_refcount(false, "fd_refcount");
#endif
gpr_mu grpc_polling_mu;

@ -31,7 +31,7 @@
#include "src/core/lib/iomgr/combiner.h"
grpc_core::Tracer grpc_resource_quota_trace(false, "resource_quota");
grpc_core::TraceFlag grpc_resource_quota_trace(false, "resource_quota");
#define MEMORY_USAGE_ESTIMATION_MAX 65536

@ -65,7 +65,7 @@ extern "C" {
maintain lists of users (which users arrange to leave before they are
destroyed) */
extern grpc_core::Tracer grpc_resource_quota_trace;
extern grpc_core::TraceFlag grpc_resource_quota_trace;
grpc_resource_quota *grpc_resource_quota_ref_internal(
grpc_resource_quota *resource_quota);

@ -43,7 +43,7 @@
#include "src/core/lib/iomgr/unix_sockets_posix.h"
#include "src/core/lib/support/string.h"
extern grpc_core::Tracer grpc_tcp_trace;
extern grpc_core::TraceFlag grpc_tcp_trace;
typedef struct {
gpr_mu mu;

@ -32,7 +32,7 @@
#include "src/core/lib/iomgr/tcp_uv.h"
#include "src/core/lib/iomgr/timer.h"
extern grpc_core::Tracer grpc_tcp_trace;
extern grpc_core::TraceFlag grpc_tcp_trace;
typedef struct grpc_uv_tcp_connect {
uv_connect_t connect_req;

@ -61,7 +61,7 @@ typedef GRPC_MSG_IOVLEN_TYPE msg_iovlen_type;
typedef size_t msg_iovlen_type;
#endif
grpc_core::Tracer grpc_tcp_trace(false, "tcp");
grpc_core::TraceFlag grpc_tcp_trace(false, "tcp");
typedef struct {
grpc_endpoint base;

@ -37,7 +37,7 @@
extern "C" {
#endif
extern grpc_core::Tracer grpc_tcp_trace;
extern grpc_core::TraceFlag grpc_tcp_trace;
/* Create a tcp endpoint given a file desciptor and a read slice size.
Takes ownership of fd. */

@ -38,7 +38,7 @@
#include "src/core/lib/slice/slice_string_helpers.h"
#include "src/core/lib/support/string.h"
grpc_core::Tracer grpc_tcp_trace(false, "tcp");
grpc_core::TraceFlag grpc_tcp_trace(false, "tcp");
typedef struct {
grpc_endpoint base;

@ -34,7 +34,7 @@
#include <uv.h>
extern grpc_core::Tracer grpc_tcp_trace;
extern grpc_core::TraceFlag grpc_tcp_trace;
#define GRPC_TCP_DEFAULT_READ_SLICE_SIZE 8192

@ -49,7 +49,7 @@
#define GRPC_FIONBIO FIONBIO
#endif
grpc_core::Tracer grpc_tcp_trace(false, "tcp");
grpc_core::TraceFlag grpc_tcp_trace(false, "tcp");
static grpc_error *set_non_block(SOCKET sock) {
int status;

@ -44,8 +44,8 @@
#define MAX_QUEUE_WINDOW_DURATION 1
extern "C" {
grpc_core::Tracer grpc_timer_trace(false, "timer");
grpc_core::Tracer grpc_timer_check_trace(false, "timer_check");
grpc_core::TraceFlag grpc_timer_trace(false, "timer");
grpc_core::TraceFlag grpc_timer_check_trace(false, "timer_check");
}
/* A "timer shard". Contains a 'heap' and a 'list' of timers. All timers with

@ -33,7 +33,7 @@ typedef struct completed_thread {
struct completed_thread *next;
} completed_thread;
extern grpc_core::Tracer grpc_timer_check_trace;
extern grpc_core::TraceFlag grpc_timer_check_trace;
// global mutex
static gpr_mu g_mu;

@ -30,8 +30,8 @@
#include <uv.h>
extern "C" {
grpc_core::Tracer grpc_timer_trace(false, "timer");
grpc_core::Tracer grpc_timer_check_trace(false, "timer_check");
grpc_core::TraceFlag grpc_timer_trace(false, "timer");
grpc_core::TraceFlag grpc_timer_check_trace(false, "timer_check");
}
static void timer_close_callback(uv_handle_t *handle) { gpr_free(handle); }

@ -30,7 +30,7 @@
#include <grpc/support/string_util.h>
#ifndef NDEBUG
grpc_core::Tracer grpc_trace_auth_context_refcount(false,
grpc_core::TraceFlag grpc_trace_auth_context_refcount(false,
"auth_context_refcount");
#endif

@ -23,7 +23,7 @@
#include "src/core/lib/security/credentials/credentials.h"
#ifndef NDEBUG
extern grpc_core::Tracer grpc_trace_auth_context_refcount;
extern grpc_core::TraceFlag grpc_trace_auth_context_refcount;
#endif
#ifdef __cplusplus

@ -31,7 +31,7 @@
#include "src/core/lib/surface/api_trace.h"
#include "src/core/lib/surface/validate_metadata.h"
grpc_core::Tracer grpc_plugin_credentials_trace(false, "plugin_credentials");
grpc_core::TraceFlag grpc_plugin_credentials_trace(false, "plugin_credentials");
static void plugin_destruct(grpc_exec_ctx *exec_ctx,
grpc_call_credentials *creds) {

@ -21,7 +21,7 @@
#include "src/core/lib/security/credentials/credentials.h"
extern grpc_core::Tracer grpc_plugin_credentials_trace;
extern grpc_core::TraceFlag grpc_plugin_credentials_trace;
struct grpc_plugin_credentials;

@ -61,7 +61,7 @@ typedef struct {
gpr_refcount ref;
} secure_endpoint;
grpc_core::Tracer grpc_trace_secure_endpoint(false, "secure_endpoint");
grpc_core::TraceFlag grpc_trace_secure_endpoint(false, "secure_endpoint");
static void destroy(grpc_exec_ctx *exec_ctx, secure_endpoint *secure_ep) {
secure_endpoint *ep = secure_ep;

@ -29,7 +29,7 @@ extern "C" {
struct tsi_frame_protector;
struct tsi_zero_copy_grpc_protector;
extern grpc_core::Tracer grpc_trace_secure_endpoint;
extern grpc_core::TraceFlag grpc_trace_secure_endpoint;
/* Takes ownership of protector, zero_copy_protector, and to_wrap, and refs
* leftover_slices. If zero_copy_protector is not NULL, protector will never be

@ -44,7 +44,7 @@
#include "src/core/tsi/transport_security_adapter.h"
#ifndef NDEBUG
grpc_core::Tracer grpc_trace_security_connector_refcount(
grpc_core::TraceFlag grpc_trace_security_connector_refcount(
false, "security_connector_refcount");
#endif

@ -34,7 +34,7 @@ extern "C" {
#endif
#ifndef NDEBUG
extern grpc_core::Tracer grpc_trace_security_connector_refcount;
extern grpc_core::TraceFlag grpc_trace_security_connector_refcount;
#endif
/* --- status enum. --- */

@ -28,7 +28,7 @@
#include "src/core/lib/surface/completion_queue.h"
#ifndef NDEBUG
grpc_core::Tracer grpc_trace_alarm_refcount(false, "alarm_refcount");
grpc_core::TraceFlag grpc_trace_alarm_refcount(false, "alarm_refcount");
#endif
struct grpc_alarm {

@ -28,7 +28,7 @@ extern "C" {
#ifndef NDEBUG
extern grpc_core::Tracer grpc_trace_alarm_refcount;
extern grpc_core::TraceFlag grpc_trace_alarm_refcount;
#define GRPC_ALARM_REF(a, reason) alarm_ref_dbg(a, reason, __FILE__, __LINE__)
#define GRPC_ALARM_UNREF(a, reason) \

@ -19,4 +19,4 @@
#include "src/core/lib/surface/api_trace.h"
#include "src/core/lib/debug/trace.h"
grpc_core::Tracer grpc_api_trace(false, "api");
grpc_core::TraceFlag grpc_api_trace(false, "api");

@ -26,7 +26,7 @@
extern "C" {
#endif
extern grpc_core::Tracer grpc_api_trace;
extern grpc_core::TraceFlag grpc_api_trace;
/* Provide unwrapping macros because we're in C89 and variadic macros weren't
introduced until C99... */

@ -259,8 +259,8 @@ struct grpc_call {
gpr_atm recv_state;
};
grpc_core::Tracer grpc_call_error_trace(false, "call_error");
grpc_core::Tracer grpc_compression_trace(false, "compression");
grpc_core::TraceFlag grpc_call_error_trace(false, "call_error");
grpc_core::TraceFlag grpc_compression_trace(false, "compression");
#define CALL_STACK_FROM_CALL(call) ((grpc_call_stack *)((call) + 1))
#define CALL_FROM_CALL_STACK(call_stack) (((grpc_call *)(call_stack)) - 1)

@ -111,8 +111,8 @@ uint8_t grpc_call_is_client(grpc_call *call);
grpc_compression_algorithm grpc_call_compression_for_level(
grpc_call *call, grpc_compression_level level);
extern grpc_core::Tracer grpc_call_error_trace;
extern grpc_core::Tracer grpc_compression_trace;
extern grpc_core::TraceFlag grpc_call_error_trace;
extern grpc_core::TraceFlag grpc_compression_trace;
#ifdef __cplusplus
}

@ -39,10 +39,10 @@
#include "src/core/lib/surface/call.h"
#include "src/core/lib/surface/event_string.h"
grpc_core::Tracer grpc_trace_operation_failures(false, "op_failure");
grpc_core::TraceFlag grpc_trace_operation_failures(false, "op_failure");
#ifndef NDEBUG
grpc_core::Tracer grpc_trace_pending_tags(false, "pending_tags");
grpc_core::Tracer grpc_trace_cq_refcount(false, "cq_refcount");
grpc_core::TraceFlag grpc_trace_pending_tags(false, "pending_tags");
grpc_core::TraceFlag grpc_trace_cq_refcount(false, "cq_refcount");
#endif
typedef struct {
@ -325,8 +325,8 @@ static const cq_vtable g_cq_vtable[] = {
#define POLLSET_FROM_CQ(cq) \
((grpc_pollset *)(cq->vtable->data_size + (char *)DATA_FROM_CQ(cq)))
grpc_core::Tracer grpc_cq_pluck_trace(true, "queue_pluck");
grpc_core::Tracer grpc_cq_event_timeout_trace(true, "queue_timeout");
grpc_core::TraceFlag grpc_cq_pluck_trace(true, "queue_pluck");
grpc_core::TraceFlag grpc_cq_event_timeout_trace(true, "queue_timeout");
#define GRPC_SURFACE_TRACE_RETURNED_EVENT(cq, event) \
if (grpc_api_trace.enabled() && (grpc_cq_pluck_trace.enabled() || \

@ -27,13 +27,13 @@
/* These trace flags default to 1. The corresponding lines are only traced
if grpc_api_trace is also truthy */
extern grpc_core::Tracer grpc_cq_pluck_trace;
extern grpc_core::Tracer grpc_cq_event_timeout_trace;
extern grpc_core::Tracer grpc_trace_operation_failures;
extern grpc_core::TraceFlag grpc_cq_pluck_trace;
extern grpc_core::TraceFlag grpc_cq_event_timeout_trace;
extern grpc_core::TraceFlag grpc_trace_operation_failures;
#ifndef NDEBUG
extern grpc_core::Tracer grpc_trace_pending_tags;
extern grpc_core::Tracer grpc_trace_cq_refcount;
extern grpc_core::TraceFlag grpc_trace_pending_tags;
extern grpc_core::TraceFlag grpc_trace_cq_refcount;
#endif
#ifdef __cplusplus

@ -59,7 +59,7 @@ typedef struct registered_method registered_method;
typedef enum { BATCH_CALL, REGISTERED_CALL } requested_call_type;
grpc_core::Tracer grpc_server_channel_trace(false, "server_channel");
grpc_core::TraceFlag grpc_server_channel_trace(false, "server_channel");
typedef struct requested_call {
requested_call_type type;

@ -31,7 +31,7 @@ extern "C" {
extern const grpc_channel_filter grpc_server_top_filter;
/** Lightweight tracing of server channel state */
extern grpc_core::Tracer grpc_server_channel_trace;
extern grpc_core::TraceFlag grpc_server_channel_trace;
/* Add a listener to the server: when the server starts, it will call start,
and when it shuts down, it will call destroy */

@ -23,7 +23,7 @@
#include <grpc/support/useful.h>
grpc_core::Tracer grpc_bdp_estimator_trace(false, "bdp_estimator");
grpc_core::TraceFlag grpc_bdp_estimator_trace(false, "bdp_estimator");
namespace grpc_core {

@ -31,7 +31,7 @@
#include "src/core/lib/debug/trace.h"
#include "src/core/lib/iomgr/exec_ctx.h"
extern grpc_core::Tracer grpc_bdp_estimator_trace;
extern grpc_core::TraceFlag grpc_bdp_estimator_trace;
namespace grpc_core {

@ -24,7 +24,7 @@
#include <grpc/support/log.h>
#include <grpc/support/string_util.h>
grpc_core::Tracer grpc_connectivity_state_trace(false, "connectivity_state");
grpc_core::TraceFlag grpc_connectivity_state_trace(false, "connectivity_state");
const char *grpc_connectivity_state_name(grpc_connectivity_state state) {
switch (state) {

@ -47,7 +47,7 @@ typedef struct {
char *name;
} grpc_connectivity_state_tracker;
extern grpc_core::Tracer grpc_connectivity_state_trace;
extern grpc_core::TraceFlag grpc_connectivity_state_trace;
/** enum --> string conversion */
const char *grpc_connectivity_state_name(grpc_connectivity_state state);

@ -49,7 +49,7 @@
*/
#ifndef NDEBUG
grpc_core::Tracer grpc_trace_metadata(false, "metadata");
grpc_core::TraceFlag grpc_trace_metadata(false, "metadata");
#define DEBUG_ARGS , const char *file, int line
#define FWD_DEBUG_ARGS , file, line
#define REF_MD_LOCKED(shard, s) ref_md_locked((shard), (s), __FILE__, __LINE__)

@ -26,7 +26,7 @@
#include "src/core/lib/iomgr/exec_ctx.h"
#ifndef NDEBUG
extern grpc_core::Tracer grpc_trace_metadata;
extern grpc_core::TraceFlag grpc_trace_metadata;
#endif
#ifdef __cplusplus

@ -32,7 +32,7 @@
#include "src/core/lib/transport/transport_impl.h"
#ifndef NDEBUG
grpc_core::Tracer grpc_trace_stream_refcount(false, "stream_refcount");
grpc_core::TraceFlag grpc_trace_stream_refcount(false, "stream_refcount");
#endif
#ifndef NDEBUG

@ -44,7 +44,7 @@ typedef struct grpc_transport grpc_transport;
typedef struct grpc_stream grpc_stream;
#ifndef NDEBUG
extern grpc_core::Tracer grpc_trace_stream_refcount;
extern grpc_core::TraceFlag grpc_trace_stream_refcount;
#endif
typedef struct grpc_stream_refcount {

@ -26,7 +26,7 @@
/* --- Tracing. --- */
grpc_core::Tracer tsi_tracing_enabled(false, "tsi");
grpc_core::TraceFlag tsi_tracing_enabled(false, "tsi");
/* --- tsi_result common implementation. --- */

@ -28,7 +28,7 @@
extern "C" {
#endif
extern grpc_core::Tracer tsi_tracing_enabled;
extern grpc_core::TraceFlag tsi_tracing_enabled;
/* Base for tsi_frame_protector implementations.
See transport_security_interface.h for documentation. */

@ -60,7 +60,7 @@ const char *tsi_result_to_string(tsi_result result);
/* --- tsi tracing --- */
extern grpc_core::Tracer tsi_tracing_enabled;
extern grpc_core::TraceFlag tsi_tracing_enabled;
/* -- tsi_zero_copy_grpc_protector object --

Loading…
Cancel
Save