Android-cuttlefish cvd tool
Classes | Namespaces | Functions | Variables
file_monitor_source.cc File Reference
#include "cuttlefish/host/commands/cvd/cli/commands/monitor/file_monitor_source.h"
#include <fcntl.h>
#include <stddef.h>
#include <stdint.h>
#include <sys/inotify.h>
#include <algorithm>
#include <functional>
#include <memory>
#include <string>
#include <string_view>
#include <utility>
#include <vector>
#include "absl/log/check.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/str_split.h"
#include "android-base/file.h"
#include "cuttlefish/common/libs/fs/fd.h"
#include "cuttlefish/common/libs/fs/shared_fd.h"
#include "cuttlefish/host/commands/cvd/cli/commands/monitor/drain_inotify.h"
#include "cuttlefish/host/commands/cvd/cli/commands/monitor/monitor_source.h"
#include "cuttlefish/host/commands/cvd/cli/format_byte_size.h"
#include "cuttlefish/io/io.h"
#include "cuttlefish/io/read_exact.h"
#include "cuttlefish/result/expect.h"
#include "cuttlefish/result/result_type.h"
Include dependency graph for file_monitor_source.cc:

Classes

struct  cuttlefish::anonymous_namespace{file_monitor_source.cc}::FileData
 

Namespaces

namespace  cuttlefish
 
namespace  cuttlefish::anonymous_namespace{file_monitor_source.cc}
 

Functions

Result< FileData > cuttlefish::anonymous_namespace{file_monitor_source.cc}::GetLastNLines (ReaderSeeker &rs, size_t n, std::function< Result< bool >(std::string_view)> &filter_line, std::string name)
 

Variables

constexpr size_t cuttlefish::anonymous_namespace{file_monitor_source.cc}::kChunkReadSize = 1 << 20
 
constexpr size_t cuttlefish::anonymous_namespace{file_monitor_source.cc}::kMaximumScrollback = 1 << 24