aboutsummaryrefslogtreecommitdiff
path: root/src/perfetto_cmd/packet_writer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/perfetto_cmd/packet_writer.cc')
-rw-r--r--src/perfetto_cmd/packet_writer.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/perfetto_cmd/packet_writer.cc b/src/perfetto_cmd/packet_writer.cc
index 2bee2f051..4897469d2 100644
--- a/src/perfetto_cmd/packet_writer.cc
+++ b/src/perfetto_cmd/packet_writer.cc
@@ -19,12 +19,13 @@
#include <array>
#include <fcntl.h>
+#include <getopt.h>
#include <signal.h>
#include <stdio.h>
#include <sys/stat.h>
+#include <unistd.h>
#include "perfetto/base/build_config.h"
-#include "perfetto/ext/base/getopt.h"
#include "perfetto/ext/base/paged_memory.h"
#include "perfetto/ext/base/utils.h"
#include "perfetto/ext/tracing/core/trace_packet.h"
@@ -37,7 +38,9 @@
namespace perfetto {
namespace {
+using protozero::proto_utils::kMessageLengthFieldSize;
using protozero::proto_utils::MakeTagLengthDelimited;
+using protozero::proto_utils::WriteRedundantVarInt;
using protozero::proto_utils::WriteVarInt;
using Preamble = std::array<char, 16>;