#include "sandbox/linux/bpf_dsl/dump_bpf.h"
#include <inttypes.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <string>
#include "base/strings/stringprintf.h"
#include "sandbox/linux/bpf_dsl/codegen.h"
#include "sandbox/linux/bpf_dsl/seccomp_macros.h"
#include "sandbox/linux/bpf_dsl/trap_registry.h"
#include "sandbox/linux/system_headers/linux_filter.h"
#include "sandbox/linux/system_headers/linux_seccomp.h"
namespace sandbox {
namespace bpf_dsl {
namespace {
const char* AluOpToken(uint32_t code) { … }
const char* JmpOpToken(uint32_t code) { … }
const char* DataOffsetName(size_t off) { … }
void AppendInstruction(std::string* dst, size_t pc, const sock_filter& insn) { … }
}
void DumpBPF::PrintProgram(const CodeGen::Program& program) { … }
std::string DumpBPF::StringPrintProgram(const CodeGen::Program& program) { … }
}
}