#include "git-compat-util.h"
#include "abspath.h"
#include "sigchain.h"
#include "strbuf.h"
#include "trace2/tr2_dst.h"
#include "trace2/tr2_sid.h"
#include "trace2/tr2_sysenv.h"
#define MAX_AUTO_ATTEMPTS …
#define DISCARD_SENTINEL_NAME …
static int tr2env_max_files = …;
static int tr2_dst_want_warning(void)
{ … }
void tr2_dst_trace_disable(struct tr2_dst *dst)
{ … }
static int tr2_dst_too_many_files(struct tr2_dst *dst, const char *tgt_prefix)
{ … }
static int tr2_dst_try_auto_path(struct tr2_dst *dst, const char *tgt_prefix)
{ … }
static int tr2_dst_try_path(struct tr2_dst *dst, const char *tgt_value)
{ … }
#ifndef NO_UNIX_SOCKETS
#define PREFIX_AF_UNIX …
#define PREFIX_AF_UNIX_STREAM …
#define PREFIX_AF_UNIX_DGRAM …
static int tr2_dst_try_uds_connect(const char *path, int sock_type, int *out_fd)
{ … }
#define TR2_DST_UDS_TRY_STREAM …
#define TR2_DST_UDS_TRY_DGRAM …
static int tr2_dst_try_unix_domain_socket(struct tr2_dst *dst,
const char *tgt_value)
{ … }
#endif
static void tr2_dst_malformed_warning(struct tr2_dst *dst,
const char *tgt_value)
{ … }
int tr2_dst_get_trace_fd(struct tr2_dst *dst)
{ … }
int tr2_dst_trace_want(struct tr2_dst *dst)
{ … }
void tr2_dst_write_line(struct tr2_dst *dst, struct strbuf *buf_line)
{ … }