blob: db45b6a7e1f7e00c819fd32c63015a91cc21aa2e [file] [log] [blame]
// Autogenerated by the ProtoZero compiler plugin. DO NOT EDIT.
#ifndef PERFETTO_PROTOS_PROTOS_PERFETTO_TRACE_FTRACE_KVM_PROTO_H_
#define PERFETTO_PROTOS_PROTOS_PERFETTO_TRACE_FTRACE_KVM_PROTO_H_
#include <stddef.h>
#include <stdint.h>
#include "perfetto/protozero/field_writer.h"
#include "perfetto/protozero/message.h"
#include "perfetto/protozero/packed_repeated_fields.h"
#include "perfetto/protozero/proto_decoder.h"
#include "perfetto/protozero/proto_utils.h"
namespace perfetto {
namespace protos {
namespace pbzero {
class VgicUpdateIrqPendingFtraceEvent_Decoder : public ::protozero::TypedProtoDecoder</*MAX_FIELD_ID=*/3, /*HAS_NONPACKED_REPEATED_FIELDS=*/false> {
public:
VgicUpdateIrqPendingFtraceEvent_Decoder(const uint8_t* data, size_t len) : TypedProtoDecoder(data, len) {}
explicit VgicUpdateIrqPendingFtraceEvent_Decoder(const std::string& raw) : TypedProtoDecoder(reinterpret_cast<const uint8_t*>(raw.data()), raw.size()) {}
explicit VgicUpdateIrqPendingFtraceEvent_Decoder(const ::protozero::ConstBytes& raw) : TypedProtoDecoder(raw.data, raw.size) {}
bool has_irq() const { return at<1>().valid(); }
uint32_t irq() const { return at<1>().as_uint32(); }
bool has_level() const { return at<2>().valid(); }
uint32_t level() const { return at<2>().as_uint32(); }
bool has_vcpu_id() const { return at<3>().valid(); }
uint64_t vcpu_id() const { return at<3>().as_uint64(); }
};
class VgicUpdateIrqPendingFtraceEvent : public ::protozero::Message {
public:
using Decoder = VgicUpdateIrqPendingFtraceEvent_Decoder;
enum : int32_t {
kIrqFieldNumber = 1,
kLevelFieldNumber = 2,
kVcpuIdFieldNumber = 3,
};
static constexpr const char* GetName() { return ".perfetto.protos.VgicUpdateIrqPendingFtraceEvent"; }
using FieldMetadata_Irq =
::protozero::proto_utils::FieldMetadata<
1,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint32,
uint32_t,
VgicUpdateIrqPendingFtraceEvent>;
static constexpr FieldMetadata_Irq kIrq{};
void set_irq(uint32_t value) {
static constexpr uint32_t field_id = FieldMetadata_Irq::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint32>
::Append(*this, field_id, value);
}
using FieldMetadata_Level =
::protozero::proto_utils::FieldMetadata<
2,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint32,
uint32_t,
VgicUpdateIrqPendingFtraceEvent>;
static constexpr FieldMetadata_Level kLevel{};
void set_level(uint32_t value) {
static constexpr uint32_t field_id = FieldMetadata_Level::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint32>
::Append(*this, field_id, value);
}
using FieldMetadata_VcpuId =
::protozero::proto_utils::FieldMetadata<
3,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint64,
uint64_t,
VgicUpdateIrqPendingFtraceEvent>;
static constexpr FieldMetadata_VcpuId kVcpuId{};
void set_vcpu_id(uint64_t value) {
static constexpr uint32_t field_id = FieldMetadata_VcpuId::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint64>
::Append(*this, field_id, value);
}
};
class TrapRegFtraceEvent_Decoder : public ::protozero::TypedProtoDecoder</*MAX_FIELD_ID=*/4, /*HAS_NONPACKED_REPEATED_FIELDS=*/false> {
public:
TrapRegFtraceEvent_Decoder(const uint8_t* data, size_t len) : TypedProtoDecoder(data, len) {}
explicit TrapRegFtraceEvent_Decoder(const std::string& raw) : TypedProtoDecoder(reinterpret_cast<const uint8_t*>(raw.data()), raw.size()) {}
explicit TrapRegFtraceEvent_Decoder(const ::protozero::ConstBytes& raw) : TypedProtoDecoder(raw.data, raw.size) {}
bool has_fn() const { return at<1>().valid(); }
::protozero::ConstChars fn() const { return at<1>().as_string(); }
bool has_is_write() const { return at<2>().valid(); }
uint32_t is_write() const { return at<2>().as_uint32(); }
bool has_reg() const { return at<3>().valid(); }
int32_t reg() const { return at<3>().as_int32(); }
bool has_write_value() const { return at<4>().valid(); }
uint64_t write_value() const { return at<4>().as_uint64(); }
};
class TrapRegFtraceEvent : public ::protozero::Message {
public:
using Decoder = TrapRegFtraceEvent_Decoder;
enum : int32_t {
kFnFieldNumber = 1,
kIsWriteFieldNumber = 2,
kRegFieldNumber = 3,
kWriteValueFieldNumber = 4,
};
static constexpr const char* GetName() { return ".perfetto.protos.TrapRegFtraceEvent"; }
using FieldMetadata_Fn =
::protozero::proto_utils::FieldMetadata<
1,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kString,
std::string,
TrapRegFtraceEvent>;
static constexpr FieldMetadata_Fn kFn{};
void set_fn(const char* data, size_t size) {
AppendBytes(FieldMetadata_Fn::kFieldId, data, size);
}
void set_fn(::protozero::ConstChars chars) {
AppendBytes(FieldMetadata_Fn::kFieldId, chars.data, chars.size);
}
void set_fn(std::string value) {
static constexpr uint32_t field_id = FieldMetadata_Fn::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kString>
::Append(*this, field_id, value);
}
using FieldMetadata_IsWrite =
::protozero::proto_utils::FieldMetadata<
2,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint32,
uint32_t,
TrapRegFtraceEvent>;
static constexpr FieldMetadata_IsWrite kIsWrite{};
void set_is_write(uint32_t value) {
static constexpr uint32_t field_id = FieldMetadata_IsWrite::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint32>
::Append(*this, field_id, value);
}
using FieldMetadata_Reg =
::protozero::proto_utils::FieldMetadata<
3,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kInt32,
int32_t,
TrapRegFtraceEvent>;
static constexpr FieldMetadata_Reg kReg{};
void set_reg(int32_t value) {
static constexpr uint32_t field_id = FieldMetadata_Reg::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kInt32>
::Append(*this, field_id, value);
}
using FieldMetadata_WriteValue =
::protozero::proto_utils::FieldMetadata<
4,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint64,
uint64_t,
TrapRegFtraceEvent>;
static constexpr FieldMetadata_WriteValue kWriteValue{};
void set_write_value(uint64_t value) {
static constexpr uint32_t field_id = FieldMetadata_WriteValue::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint64>
::Append(*this, field_id, value);
}
};
class KvmWfxArm64FtraceEvent_Decoder : public ::protozero::TypedProtoDecoder</*MAX_FIELD_ID=*/2, /*HAS_NONPACKED_REPEATED_FIELDS=*/false> {
public:
KvmWfxArm64FtraceEvent_Decoder(const uint8_t* data, size_t len) : TypedProtoDecoder(data, len) {}
explicit KvmWfxArm64FtraceEvent_Decoder(const std::string& raw) : TypedProtoDecoder(reinterpret_cast<const uint8_t*>(raw.data()), raw.size()) {}
explicit KvmWfxArm64FtraceEvent_Decoder(const ::protozero::ConstBytes& raw) : TypedProtoDecoder(raw.data, raw.size) {}
bool has_is_wfe() const { return at<1>().valid(); }
uint32_t is_wfe() const { return at<1>().as_uint32(); }
bool has_vcpu_pc() const { return at<2>().valid(); }
uint64_t vcpu_pc() const { return at<2>().as_uint64(); }
};
class KvmWfxArm64FtraceEvent : public ::protozero::Message {
public:
using Decoder = KvmWfxArm64FtraceEvent_Decoder;
enum : int32_t {
kIsWfeFieldNumber = 1,
kVcpuPcFieldNumber = 2,
};
static constexpr const char* GetName() { return ".perfetto.protos.KvmWfxArm64FtraceEvent"; }
using FieldMetadata_IsWfe =
::protozero::proto_utils::FieldMetadata<
1,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint32,
uint32_t,
KvmWfxArm64FtraceEvent>;
static constexpr FieldMetadata_IsWfe kIsWfe{};
void set_is_wfe(uint32_t value) {
static constexpr uint32_t field_id = FieldMetadata_IsWfe::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint32>
::Append(*this, field_id, value);
}
using FieldMetadata_VcpuPc =
::protozero::proto_utils::FieldMetadata<
2,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint64,
uint64_t,
KvmWfxArm64FtraceEvent>;
static constexpr FieldMetadata_VcpuPc kVcpuPc{};
void set_vcpu_pc(uint64_t value) {
static constexpr uint32_t field_id = FieldMetadata_VcpuPc::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint64>
::Append(*this, field_id, value);
}
};
class KvmVcpuWakeupFtraceEvent_Decoder : public ::protozero::TypedProtoDecoder</*MAX_FIELD_ID=*/3, /*HAS_NONPACKED_REPEATED_FIELDS=*/false> {
public:
KvmVcpuWakeupFtraceEvent_Decoder(const uint8_t* data, size_t len) : TypedProtoDecoder(data, len) {}
explicit KvmVcpuWakeupFtraceEvent_Decoder(const std::string& raw) : TypedProtoDecoder(reinterpret_cast<const uint8_t*>(raw.data()), raw.size()) {}
explicit KvmVcpuWakeupFtraceEvent_Decoder(const ::protozero::ConstBytes& raw) : TypedProtoDecoder(raw.data, raw.size) {}
bool has_ns() const { return at<1>().valid(); }
uint64_t ns() const { return at<1>().as_uint64(); }
bool has_valid() const { return at<2>().valid(); }
uint32_t valid() const { return at<2>().as_uint32(); }
bool has_waited() const { return at<3>().valid(); }
uint32_t waited() const { return at<3>().as_uint32(); }
};
class KvmVcpuWakeupFtraceEvent : public ::protozero::Message {
public:
using Decoder = KvmVcpuWakeupFtraceEvent_Decoder;
enum : int32_t {
kNsFieldNumber = 1,
kValidFieldNumber = 2,
kWaitedFieldNumber = 3,
};
static constexpr const char* GetName() { return ".perfetto.protos.KvmVcpuWakeupFtraceEvent"; }
using FieldMetadata_Ns =
::protozero::proto_utils::FieldMetadata<
1,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint64,
uint64_t,
KvmVcpuWakeupFtraceEvent>;
static constexpr FieldMetadata_Ns kNs{};
void set_ns(uint64_t value) {
static constexpr uint32_t field_id = FieldMetadata_Ns::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint64>
::Append(*this, field_id, value);
}
using FieldMetadata_Valid =
::protozero::proto_utils::FieldMetadata<
2,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint32,
uint32_t,
KvmVcpuWakeupFtraceEvent>;
static constexpr FieldMetadata_Valid kValid{};
void set_valid(uint32_t value) {
static constexpr uint32_t field_id = FieldMetadata_Valid::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint32>
::Append(*this, field_id, value);
}
using FieldMetadata_Waited =
::protozero::proto_utils::FieldMetadata<
3,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint32,
uint32_t,
KvmVcpuWakeupFtraceEvent>;
static constexpr FieldMetadata_Waited kWaited{};
void set_waited(uint32_t value) {
static constexpr uint32_t field_id = FieldMetadata_Waited::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint32>
::Append(*this, field_id, value);
}
};
class KvmUserspaceExitFtraceEvent_Decoder : public ::protozero::TypedProtoDecoder</*MAX_FIELD_ID=*/1, /*HAS_NONPACKED_REPEATED_FIELDS=*/false> {
public:
KvmUserspaceExitFtraceEvent_Decoder(const uint8_t* data, size_t len) : TypedProtoDecoder(data, len) {}
explicit KvmUserspaceExitFtraceEvent_Decoder(const std::string& raw) : TypedProtoDecoder(reinterpret_cast<const uint8_t*>(raw.data()), raw.size()) {}
explicit KvmUserspaceExitFtraceEvent_Decoder(const ::protozero::ConstBytes& raw) : TypedProtoDecoder(raw.data, raw.size) {}
bool has_reason() const { return at<1>().valid(); }
uint32_t reason() const { return at<1>().as_uint32(); }
};
class KvmUserspaceExitFtraceEvent : public ::protozero::Message {
public:
using Decoder = KvmUserspaceExitFtraceEvent_Decoder;
enum : int32_t {
kReasonFieldNumber = 1,
};
static constexpr const char* GetName() { return ".perfetto.protos.KvmUserspaceExitFtraceEvent"; }
using FieldMetadata_Reason =
::protozero::proto_utils::FieldMetadata<
1,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint32,
uint32_t,
KvmUserspaceExitFtraceEvent>;
static constexpr FieldMetadata_Reason kReason{};
void set_reason(uint32_t value) {
static constexpr uint32_t field_id = FieldMetadata_Reason::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint32>
::Append(*this, field_id, value);
}
};
class KvmUnmapHvaRangeFtraceEvent_Decoder : public ::protozero::TypedProtoDecoder</*MAX_FIELD_ID=*/2, /*HAS_NONPACKED_REPEATED_FIELDS=*/false> {
public:
KvmUnmapHvaRangeFtraceEvent_Decoder(const uint8_t* data, size_t len) : TypedProtoDecoder(data, len) {}
explicit KvmUnmapHvaRangeFtraceEvent_Decoder(const std::string& raw) : TypedProtoDecoder(reinterpret_cast<const uint8_t*>(raw.data()), raw.size()) {}
explicit KvmUnmapHvaRangeFtraceEvent_Decoder(const ::protozero::ConstBytes& raw) : TypedProtoDecoder(raw.data, raw.size) {}
bool has_end() const { return at<1>().valid(); }
uint64_t end() const { return at<1>().as_uint64(); }
bool has_start() const { return at<2>().valid(); }
uint64_t start() const { return at<2>().as_uint64(); }
};
class KvmUnmapHvaRangeFtraceEvent : public ::protozero::Message {
public:
using Decoder = KvmUnmapHvaRangeFtraceEvent_Decoder;
enum : int32_t {
kEndFieldNumber = 1,
kStartFieldNumber = 2,
};
static constexpr const char* GetName() { return ".perfetto.protos.KvmUnmapHvaRangeFtraceEvent"; }
using FieldMetadata_End =
::protozero::proto_utils::FieldMetadata<
1,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint64,
uint64_t,
KvmUnmapHvaRangeFtraceEvent>;
static constexpr FieldMetadata_End kEnd{};
void set_end(uint64_t value) {
static constexpr uint32_t field_id = FieldMetadata_End::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint64>
::Append(*this, field_id, value);
}
using FieldMetadata_Start =
::protozero::proto_utils::FieldMetadata<
2,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint64,
uint64_t,
KvmUnmapHvaRangeFtraceEvent>;
static constexpr FieldMetadata_Start kStart{};
void set_start(uint64_t value) {
static constexpr uint32_t field_id = FieldMetadata_Start::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint64>
::Append(*this, field_id, value);
}
};
class KvmToggleCacheFtraceEvent_Decoder : public ::protozero::TypedProtoDecoder</*MAX_FIELD_ID=*/3, /*HAS_NONPACKED_REPEATED_FIELDS=*/false> {
public:
KvmToggleCacheFtraceEvent_Decoder(const uint8_t* data, size_t len) : TypedProtoDecoder(data, len) {}
explicit KvmToggleCacheFtraceEvent_Decoder(const std::string& raw) : TypedProtoDecoder(reinterpret_cast<const uint8_t*>(raw.data()), raw.size()) {}
explicit KvmToggleCacheFtraceEvent_Decoder(const ::protozero::ConstBytes& raw) : TypedProtoDecoder(raw.data, raw.size) {}
bool has_now() const { return at<1>().valid(); }
uint32_t now() const { return at<1>().as_uint32(); }
bool has_vcpu_pc() const { return at<2>().valid(); }
uint64_t vcpu_pc() const { return at<2>().as_uint64(); }
bool has_was() const { return at<3>().valid(); }
uint32_t was() const { return at<3>().as_uint32(); }
};
class KvmToggleCacheFtraceEvent : public ::protozero::Message {
public:
using Decoder = KvmToggleCacheFtraceEvent_Decoder;
enum : int32_t {
kNowFieldNumber = 1,
kVcpuPcFieldNumber = 2,
kWasFieldNumber = 3,
};
static constexpr const char* GetName() { return ".perfetto.protos.KvmToggleCacheFtraceEvent"; }
using FieldMetadata_Now =
::protozero::proto_utils::FieldMetadata<
1,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint32,
uint32_t,
KvmToggleCacheFtraceEvent>;
static constexpr FieldMetadata_Now kNow{};
void set_now(uint32_t value) {
static constexpr uint32_t field_id = FieldMetadata_Now::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint32>
::Append(*this, field_id, value);
}
using FieldMetadata_VcpuPc =
::protozero::proto_utils::FieldMetadata<
2,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint64,
uint64_t,
KvmToggleCacheFtraceEvent>;
static constexpr FieldMetadata_VcpuPc kVcpuPc{};
void set_vcpu_pc(uint64_t value) {
static constexpr uint32_t field_id = FieldMetadata_VcpuPc::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint64>
::Append(*this, field_id, value);
}
using FieldMetadata_Was =
::protozero::proto_utils::FieldMetadata<
3,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint32,
uint32_t,
KvmToggleCacheFtraceEvent>;
static constexpr FieldMetadata_Was kWas{};
void set_was(uint32_t value) {
static constexpr uint32_t field_id = FieldMetadata_Was::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint32>
::Append(*this, field_id, value);
}
};
class KvmTimerUpdateIrqFtraceEvent_Decoder : public ::protozero::TypedProtoDecoder</*MAX_FIELD_ID=*/3, /*HAS_NONPACKED_REPEATED_FIELDS=*/false> {
public:
KvmTimerUpdateIrqFtraceEvent_Decoder(const uint8_t* data, size_t len) : TypedProtoDecoder(data, len) {}
explicit KvmTimerUpdateIrqFtraceEvent_Decoder(const std::string& raw) : TypedProtoDecoder(reinterpret_cast<const uint8_t*>(raw.data()), raw.size()) {}
explicit KvmTimerUpdateIrqFtraceEvent_Decoder(const ::protozero::ConstBytes& raw) : TypedProtoDecoder(raw.data, raw.size) {}
bool has_irq() const { return at<1>().valid(); }
uint32_t irq() const { return at<1>().as_uint32(); }
bool has_level() const { return at<2>().valid(); }
int32_t level() const { return at<2>().as_int32(); }
bool has_vcpu_id() const { return at<3>().valid(); }
uint64_t vcpu_id() const { return at<3>().as_uint64(); }
};
class KvmTimerUpdateIrqFtraceEvent : public ::protozero::Message {
public:
using Decoder = KvmTimerUpdateIrqFtraceEvent_Decoder;
enum : int32_t {
kIrqFieldNumber = 1,
kLevelFieldNumber = 2,
kVcpuIdFieldNumber = 3,
};
static constexpr const char* GetName() { return ".perfetto.protos.KvmTimerUpdateIrqFtraceEvent"; }
using FieldMetadata_Irq =
::protozero::proto_utils::FieldMetadata<
1,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint32,
uint32_t,
KvmTimerUpdateIrqFtraceEvent>;
static constexpr FieldMetadata_Irq kIrq{};
void set_irq(uint32_t value) {
static constexpr uint32_t field_id = FieldMetadata_Irq::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint32>
::Append(*this, field_id, value);
}
using FieldMetadata_Level =
::protozero::proto_utils::FieldMetadata<
2,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kInt32,
int32_t,
KvmTimerUpdateIrqFtraceEvent>;
static constexpr FieldMetadata_Level kLevel{};
void set_level(int32_t value) {
static constexpr uint32_t field_id = FieldMetadata_Level::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kInt32>
::Append(*this, field_id, value);
}
using FieldMetadata_VcpuId =
::protozero::proto_utils::FieldMetadata<
3,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint64,
uint64_t,
KvmTimerUpdateIrqFtraceEvent>;
static constexpr FieldMetadata_VcpuId kVcpuId{};
void set_vcpu_id(uint64_t value) {
static constexpr uint32_t field_id = FieldMetadata_VcpuId::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint64>
::Append(*this, field_id, value);
}
};
class KvmTimerSaveStateFtraceEvent_Decoder : public ::protozero::TypedProtoDecoder</*MAX_FIELD_ID=*/3, /*HAS_NONPACKED_REPEATED_FIELDS=*/false> {
public:
KvmTimerSaveStateFtraceEvent_Decoder(const uint8_t* data, size_t len) : TypedProtoDecoder(data, len) {}
explicit KvmTimerSaveStateFtraceEvent_Decoder(const std::string& raw) : TypedProtoDecoder(reinterpret_cast<const uint8_t*>(raw.data()), raw.size()) {}
explicit KvmTimerSaveStateFtraceEvent_Decoder(const ::protozero::ConstBytes& raw) : TypedProtoDecoder(raw.data, raw.size) {}
bool has_ctl() const { return at<1>().valid(); }
uint64_t ctl() const { return at<1>().as_uint64(); }
bool has_cval() const { return at<2>().valid(); }
uint64_t cval() const { return at<2>().as_uint64(); }
bool has_timer_idx() const { return at<3>().valid(); }
int32_t timer_idx() const { return at<3>().as_int32(); }
};
class KvmTimerSaveStateFtraceEvent : public ::protozero::Message {
public:
using Decoder = KvmTimerSaveStateFtraceEvent_Decoder;
enum : int32_t {
kCtlFieldNumber = 1,
kCvalFieldNumber = 2,
kTimerIdxFieldNumber = 3,
};
static constexpr const char* GetName() { return ".perfetto.protos.KvmTimerSaveStateFtraceEvent"; }
using FieldMetadata_Ctl =
::protozero::proto_utils::FieldMetadata<
1,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint64,
uint64_t,
KvmTimerSaveStateFtraceEvent>;
static constexpr FieldMetadata_Ctl kCtl{};
void set_ctl(uint64_t value) {
static constexpr uint32_t field_id = FieldMetadata_Ctl::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint64>
::Append(*this, field_id, value);
}
using FieldMetadata_Cval =
::protozero::proto_utils::FieldMetadata<
2,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint64,
uint64_t,
KvmTimerSaveStateFtraceEvent>;
static constexpr FieldMetadata_Cval kCval{};
void set_cval(uint64_t value) {
static constexpr uint32_t field_id = FieldMetadata_Cval::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint64>
::Append(*this, field_id, value);
}
using FieldMetadata_TimerIdx =
::protozero::proto_utils::FieldMetadata<
3,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kInt32,
int32_t,
KvmTimerSaveStateFtraceEvent>;
static constexpr FieldMetadata_TimerIdx kTimerIdx{};
void set_timer_idx(int32_t value) {
static constexpr uint32_t field_id = FieldMetadata_TimerIdx::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kInt32>
::Append(*this, field_id, value);
}
};
class KvmTimerRestoreStateFtraceEvent_Decoder : public ::protozero::TypedProtoDecoder</*MAX_FIELD_ID=*/3, /*HAS_NONPACKED_REPEATED_FIELDS=*/false> {
public:
KvmTimerRestoreStateFtraceEvent_Decoder(const uint8_t* data, size_t len) : TypedProtoDecoder(data, len) {}
explicit KvmTimerRestoreStateFtraceEvent_Decoder(const std::string& raw) : TypedProtoDecoder(reinterpret_cast<const uint8_t*>(raw.data()), raw.size()) {}
explicit KvmTimerRestoreStateFtraceEvent_Decoder(const ::protozero::ConstBytes& raw) : TypedProtoDecoder(raw.data, raw.size) {}
bool has_ctl() const { return at<1>().valid(); }
uint64_t ctl() const { return at<1>().as_uint64(); }
bool has_cval() const { return at<2>().valid(); }
uint64_t cval() const { return at<2>().as_uint64(); }
bool has_timer_idx() const { return at<3>().valid(); }
int32_t timer_idx() const { return at<3>().as_int32(); }
};
class KvmTimerRestoreStateFtraceEvent : public ::protozero::Message {
public:
using Decoder = KvmTimerRestoreStateFtraceEvent_Decoder;
enum : int32_t {
kCtlFieldNumber = 1,
kCvalFieldNumber = 2,
kTimerIdxFieldNumber = 3,
};
static constexpr const char* GetName() { return ".perfetto.protos.KvmTimerRestoreStateFtraceEvent"; }
using FieldMetadata_Ctl =
::protozero::proto_utils::FieldMetadata<
1,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint64,
uint64_t,
KvmTimerRestoreStateFtraceEvent>;
static constexpr FieldMetadata_Ctl kCtl{};
void set_ctl(uint64_t value) {
static constexpr uint32_t field_id = FieldMetadata_Ctl::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint64>
::Append(*this, field_id, value);
}
using FieldMetadata_Cval =
::protozero::proto_utils::FieldMetadata<
2,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint64,
uint64_t,
KvmTimerRestoreStateFtraceEvent>;
static constexpr FieldMetadata_Cval kCval{};
void set_cval(uint64_t value) {
static constexpr uint32_t field_id = FieldMetadata_Cval::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint64>
::Append(*this, field_id, value);
}
using FieldMetadata_TimerIdx =
::protozero::proto_utils::FieldMetadata<
3,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kInt32,
int32_t,
KvmTimerRestoreStateFtraceEvent>;
static constexpr FieldMetadata_TimerIdx kTimerIdx{};
void set_timer_idx(int32_t value) {
static constexpr uint32_t field_id = FieldMetadata_TimerIdx::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kInt32>
::Append(*this, field_id, value);
}
};
class KvmTimerHrtimerExpireFtraceEvent_Decoder : public ::protozero::TypedProtoDecoder</*MAX_FIELD_ID=*/1, /*HAS_NONPACKED_REPEATED_FIELDS=*/false> {
public:
KvmTimerHrtimerExpireFtraceEvent_Decoder(const uint8_t* data, size_t len) : TypedProtoDecoder(data, len) {}
explicit KvmTimerHrtimerExpireFtraceEvent_Decoder(const std::string& raw) : TypedProtoDecoder(reinterpret_cast<const uint8_t*>(raw.data()), raw.size()) {}
explicit KvmTimerHrtimerExpireFtraceEvent_Decoder(const ::protozero::ConstBytes& raw) : TypedProtoDecoder(raw.data, raw.size) {}
bool has_timer_idx() const { return at<1>().valid(); }
int32_t timer_idx() const { return at<1>().as_int32(); }
};
class KvmTimerHrtimerExpireFtraceEvent : public ::protozero::Message {
public:
using Decoder = KvmTimerHrtimerExpireFtraceEvent_Decoder;
enum : int32_t {
kTimerIdxFieldNumber = 1,
};
static constexpr const char* GetName() { return ".perfetto.protos.KvmTimerHrtimerExpireFtraceEvent"; }
using FieldMetadata_TimerIdx =
::protozero::proto_utils::FieldMetadata<
1,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kInt32,
int32_t,
KvmTimerHrtimerExpireFtraceEvent>;
static constexpr FieldMetadata_TimerIdx kTimerIdx{};
void set_timer_idx(int32_t value) {
static constexpr uint32_t field_id = FieldMetadata_TimerIdx::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kInt32>
::Append(*this, field_id, value);
}
};
class KvmTimerEmulateFtraceEvent_Decoder : public ::protozero::TypedProtoDecoder</*MAX_FIELD_ID=*/2, /*HAS_NONPACKED_REPEATED_FIELDS=*/false> {
public:
KvmTimerEmulateFtraceEvent_Decoder(const uint8_t* data, size_t len) : TypedProtoDecoder(data, len) {}
explicit KvmTimerEmulateFtraceEvent_Decoder(const std::string& raw) : TypedProtoDecoder(reinterpret_cast<const uint8_t*>(raw.data()), raw.size()) {}
explicit KvmTimerEmulateFtraceEvent_Decoder(const ::protozero::ConstBytes& raw) : TypedProtoDecoder(raw.data, raw.size) {}
bool has_should_fire() const { return at<1>().valid(); }
uint32_t should_fire() const { return at<1>().as_uint32(); }
bool has_timer_idx() const { return at<2>().valid(); }
int32_t timer_idx() const { return at<2>().as_int32(); }
};
class KvmTimerEmulateFtraceEvent : public ::protozero::Message {
public:
using Decoder = KvmTimerEmulateFtraceEvent_Decoder;
enum : int32_t {
kShouldFireFieldNumber = 1,
kTimerIdxFieldNumber = 2,
};
static constexpr const char* GetName() { return ".perfetto.protos.KvmTimerEmulateFtraceEvent"; }
using FieldMetadata_ShouldFire =
::protozero::proto_utils::FieldMetadata<
1,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint32,
uint32_t,
KvmTimerEmulateFtraceEvent>;
static constexpr FieldMetadata_ShouldFire kShouldFire{};
void set_should_fire(uint32_t value) {
static constexpr uint32_t field_id = FieldMetadata_ShouldFire::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint32>
::Append(*this, field_id, value);
}
using FieldMetadata_TimerIdx =
::protozero::proto_utils::FieldMetadata<
2,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kInt32,
int32_t,
KvmTimerEmulateFtraceEvent>;
static constexpr FieldMetadata_TimerIdx kTimerIdx{};
void set_timer_idx(int32_t value) {
static constexpr uint32_t field_id = FieldMetadata_TimerIdx::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kInt32>
::Append(*this, field_id, value);
}
};
class KvmTestAgeHvaFtraceEvent_Decoder : public ::protozero::TypedProtoDecoder</*MAX_FIELD_ID=*/1, /*HAS_NONPACKED_REPEATED_FIELDS=*/false> {
public:
KvmTestAgeHvaFtraceEvent_Decoder(const uint8_t* data, size_t len) : TypedProtoDecoder(data, len) {}
explicit KvmTestAgeHvaFtraceEvent_Decoder(const std::string& raw) : TypedProtoDecoder(reinterpret_cast<const uint8_t*>(raw.data()), raw.size()) {}
explicit KvmTestAgeHvaFtraceEvent_Decoder(const ::protozero::ConstBytes& raw) : TypedProtoDecoder(raw.data, raw.size) {}
bool has_hva() const { return at<1>().valid(); }
uint64_t hva() const { return at<1>().as_uint64(); }
};
class KvmTestAgeHvaFtraceEvent : public ::protozero::Message {
public:
using Decoder = KvmTestAgeHvaFtraceEvent_Decoder;
enum : int32_t {
kHvaFieldNumber = 1,
};
static constexpr const char* GetName() { return ".perfetto.protos.KvmTestAgeHvaFtraceEvent"; }
using FieldMetadata_Hva =
::protozero::proto_utils::FieldMetadata<
1,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint64,
uint64_t,
KvmTestAgeHvaFtraceEvent>;
static constexpr FieldMetadata_Hva kHva{};
void set_hva(uint64_t value) {
static constexpr uint32_t field_id = FieldMetadata_Hva::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint64>
::Append(*this, field_id, value);
}
};
class KvmSysAccessFtraceEvent_Decoder : public ::protozero::TypedProtoDecoder</*MAX_FIELD_ID=*/8, /*HAS_NONPACKED_REPEATED_FIELDS=*/false> {
public:
KvmSysAccessFtraceEvent_Decoder(const uint8_t* data, size_t len) : TypedProtoDecoder(data, len) {}
explicit KvmSysAccessFtraceEvent_Decoder(const std::string& raw) : TypedProtoDecoder(reinterpret_cast<const uint8_t*>(raw.data()), raw.size()) {}
explicit KvmSysAccessFtraceEvent_Decoder(const ::protozero::ConstBytes& raw) : TypedProtoDecoder(raw.data, raw.size) {}
bool has_crm() const { return at<1>().valid(); }
uint32_t crm() const { return at<1>().as_uint32(); }
bool has_crn() const { return at<2>().valid(); }
uint32_t crn() const { return at<2>().as_uint32(); }
bool has_op0() const { return at<3>().valid(); }
uint32_t op0() const { return at<3>().as_uint32(); }
bool has_op1() const { return at<4>().valid(); }
uint32_t op1() const { return at<4>().as_uint32(); }
bool has_op2() const { return at<5>().valid(); }
uint32_t op2() const { return at<5>().as_uint32(); }
bool has_is_write() const { return at<6>().valid(); }
uint32_t is_write() const { return at<6>().as_uint32(); }
bool has_name() const { return at<7>().valid(); }
::protozero::ConstChars name() const { return at<7>().as_string(); }
bool has_vcpu_pc() const { return at<8>().valid(); }
uint64_t vcpu_pc() const { return at<8>().as_uint64(); }
};
class KvmSysAccessFtraceEvent : public ::protozero::Message {
public:
using Decoder = KvmSysAccessFtraceEvent_Decoder;
enum : int32_t {
kCRmFieldNumber = 1,
kCRnFieldNumber = 2,
kOp0FieldNumber = 3,
kOp1FieldNumber = 4,
kOp2FieldNumber = 5,
kIsWriteFieldNumber = 6,
kNameFieldNumber = 7,
kVcpuPcFieldNumber = 8,
};
static constexpr const char* GetName() { return ".perfetto.protos.KvmSysAccessFtraceEvent"; }
using FieldMetadata_CRm =
::protozero::proto_utils::FieldMetadata<
1,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint32,
uint32_t,
KvmSysAccessFtraceEvent>;
static constexpr FieldMetadata_CRm kCRm{};
void set_crm(uint32_t value) {
static constexpr uint32_t field_id = FieldMetadata_CRm::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint32>
::Append(*this, field_id, value);
}
using FieldMetadata_CRn =
::protozero::proto_utils::FieldMetadata<
2,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint32,
uint32_t,
KvmSysAccessFtraceEvent>;
static constexpr FieldMetadata_CRn kCRn{};
void set_crn(uint32_t value) {
static constexpr uint32_t field_id = FieldMetadata_CRn::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint32>
::Append(*this, field_id, value);
}
using FieldMetadata_Op0 =
::protozero::proto_utils::FieldMetadata<
3,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint32,
uint32_t,
KvmSysAccessFtraceEvent>;
static constexpr FieldMetadata_Op0 kOp0{};
void set_op0(uint32_t value) {
static constexpr uint32_t field_id = FieldMetadata_Op0::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint32>
::Append(*this, field_id, value);
}
using FieldMetadata_Op1 =
::protozero::proto_utils::FieldMetadata<
4,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint32,
uint32_t,
KvmSysAccessFtraceEvent>;
static constexpr FieldMetadata_Op1 kOp1{};
void set_op1(uint32_t value) {
static constexpr uint32_t field_id = FieldMetadata_Op1::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint32>
::Append(*this, field_id, value);
}
using FieldMetadata_Op2 =
::protozero::proto_utils::FieldMetadata<
5,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint32,
uint32_t,
KvmSysAccessFtraceEvent>;
static constexpr FieldMetadata_Op2 kOp2{};
void set_op2(uint32_t value) {
static constexpr uint32_t field_id = FieldMetadata_Op2::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint32>
::Append(*this, field_id, value);
}
using FieldMetadata_IsWrite =
::protozero::proto_utils::FieldMetadata<
6,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint32,
uint32_t,
KvmSysAccessFtraceEvent>;
static constexpr FieldMetadata_IsWrite kIsWrite{};
void set_is_write(uint32_t value) {
static constexpr uint32_t field_id = FieldMetadata_IsWrite::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint32>
::Append(*this, field_id, value);
}
using FieldMetadata_Name =
::protozero::proto_utils::FieldMetadata<
7,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kString,
std::string,
KvmSysAccessFtraceEvent>;
static constexpr FieldMetadata_Name kName{};
void set_name(const char* data, size_t size) {
AppendBytes(FieldMetadata_Name::kFieldId, data, size);
}
void set_name(::protozero::ConstChars chars) {
AppendBytes(FieldMetadata_Name::kFieldId, chars.data, chars.size);
}
void set_name(std::string value) {
static constexpr uint32_t field_id = FieldMetadata_Name::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kString>
::Append(*this, field_id, value);
}
using FieldMetadata_VcpuPc =
::protozero::proto_utils::FieldMetadata<
8,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint64,
uint64_t,
KvmSysAccessFtraceEvent>;
static constexpr FieldMetadata_VcpuPc kVcpuPc{};
void set_vcpu_pc(uint64_t value) {
static constexpr uint32_t field_id = FieldMetadata_VcpuPc::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint64>
::Append(*this, field_id, value);
}
};
class KvmSetWayFlushFtraceEvent_Decoder : public ::protozero::TypedProtoDecoder</*MAX_FIELD_ID=*/2, /*HAS_NONPACKED_REPEATED_FIELDS=*/false> {
public:
KvmSetWayFlushFtraceEvent_Decoder(const uint8_t* data, size_t len) : TypedProtoDecoder(data, len) {}
explicit KvmSetWayFlushFtraceEvent_Decoder(const std::string& raw) : TypedProtoDecoder(reinterpret_cast<const uint8_t*>(raw.data()), raw.size()) {}
explicit KvmSetWayFlushFtraceEvent_Decoder(const ::protozero::ConstBytes& raw) : TypedProtoDecoder(raw.data, raw.size) {}
bool has_cache() const { return at<1>().valid(); }
uint32_t cache() const { return at<1>().as_uint32(); }
bool has_vcpu_pc() const { return at<2>().valid(); }
uint64_t vcpu_pc() const { return at<2>().as_uint64(); }
};
class KvmSetWayFlushFtraceEvent : public ::protozero::Message {
public:
using Decoder = KvmSetWayFlushFtraceEvent_Decoder;
enum : int32_t {
kCacheFieldNumber = 1,
kVcpuPcFieldNumber = 2,
};
static constexpr const char* GetName() { return ".perfetto.protos.KvmSetWayFlushFtraceEvent"; }
using FieldMetadata_Cache =
::protozero::proto_utils::FieldMetadata<
1,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint32,
uint32_t,
KvmSetWayFlushFtraceEvent>;
static constexpr FieldMetadata_Cache kCache{};
void set_cache(uint32_t value) {
static constexpr uint32_t field_id = FieldMetadata_Cache::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint32>
::Append(*this, field_id, value);
}
using FieldMetadata_VcpuPc =
::protozero::proto_utils::FieldMetadata<
2,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint64,
uint64_t,
KvmSetWayFlushFtraceEvent>;
static constexpr FieldMetadata_VcpuPc kVcpuPc{};
void set_vcpu_pc(uint64_t value) {
static constexpr uint32_t field_id = FieldMetadata_VcpuPc::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint64>
::Append(*this, field_id, value);
}
};
class KvmSetSpteHvaFtraceEvent_Decoder : public ::protozero::TypedProtoDecoder</*MAX_FIELD_ID=*/1, /*HAS_NONPACKED_REPEATED_FIELDS=*/false> {
public:
KvmSetSpteHvaFtraceEvent_Decoder(const uint8_t* data, size_t len) : TypedProtoDecoder(data, len) {}
explicit KvmSetSpteHvaFtraceEvent_Decoder(const std::string& raw) : TypedProtoDecoder(reinterpret_cast<const uint8_t*>(raw.data()), raw.size()) {}
explicit KvmSetSpteHvaFtraceEvent_Decoder(const ::protozero::ConstBytes& raw) : TypedProtoDecoder(raw.data, raw.size) {}
bool has_hva() const { return at<1>().valid(); }
uint64_t hva() const { return at<1>().as_uint64(); }
};
class KvmSetSpteHvaFtraceEvent : public ::protozero::Message {
public:
using Decoder = KvmSetSpteHvaFtraceEvent_Decoder;
enum : int32_t {
kHvaFieldNumber = 1,
};
static constexpr const char* GetName() { return ".perfetto.protos.KvmSetSpteHvaFtraceEvent"; }
using FieldMetadata_Hva =
::protozero::proto_utils::FieldMetadata<
1,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint64,
uint64_t,
KvmSetSpteHvaFtraceEvent>;
static constexpr FieldMetadata_Hva kHva{};
void set_hva(uint64_t value) {
static constexpr uint32_t field_id = FieldMetadata_Hva::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint64>
::Append(*this, field_id, value);
}
};
class KvmSetIrqFtraceEvent_Decoder : public ::protozero::TypedProtoDecoder</*MAX_FIELD_ID=*/3, /*HAS_NONPACKED_REPEATED_FIELDS=*/false> {
public:
KvmSetIrqFtraceEvent_Decoder(const uint8_t* data, size_t len) : TypedProtoDecoder(data, len) {}
explicit KvmSetIrqFtraceEvent_Decoder(const std::string& raw) : TypedProtoDecoder(reinterpret_cast<const uint8_t*>(raw.data()), raw.size()) {}
explicit KvmSetIrqFtraceEvent_Decoder(const ::protozero::ConstBytes& raw) : TypedProtoDecoder(raw.data, raw.size) {}
bool has_gsi() const { return at<1>().valid(); }
uint32_t gsi() const { return at<1>().as_uint32(); }
bool has_irq_source_id() const { return at<2>().valid(); }
int32_t irq_source_id() const { return at<2>().as_int32(); }
bool has_level() const { return at<3>().valid(); }
int32_t level() const { return at<3>().as_int32(); }
};
class KvmSetIrqFtraceEvent : public ::protozero::Message {
public:
using Decoder = KvmSetIrqFtraceEvent_Decoder;
enum : int32_t {
kGsiFieldNumber = 1,
kIrqSourceIdFieldNumber = 2,
kLevelFieldNumber = 3,
};
static constexpr const char* GetName() { return ".perfetto.protos.KvmSetIrqFtraceEvent"; }
using FieldMetadata_Gsi =
::protozero::proto_utils::FieldMetadata<
1,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint32,
uint32_t,
KvmSetIrqFtraceEvent>;
static constexpr FieldMetadata_Gsi kGsi{};
void set_gsi(uint32_t value) {
static constexpr uint32_t field_id = FieldMetadata_Gsi::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint32>
::Append(*this, field_id, value);
}
using FieldMetadata_IrqSourceId =
::protozero::proto_utils::FieldMetadata<
2,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kInt32,
int32_t,
KvmSetIrqFtraceEvent>;
static constexpr FieldMetadata_IrqSourceId kIrqSourceId{};
void set_irq_source_id(int32_t value) {
static constexpr uint32_t field_id = FieldMetadata_IrqSourceId::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kInt32>
::Append(*this, field_id, value);
}
using FieldMetadata_Level =
::protozero::proto_utils::FieldMetadata<
3,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kInt32,
int32_t,
KvmSetIrqFtraceEvent>;
static constexpr FieldMetadata_Level kLevel{};
void set_level(int32_t value) {
static constexpr uint32_t field_id = FieldMetadata_Level::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kInt32>
::Append(*this, field_id, value);
}
};
class KvmSetGuestDebugFtraceEvent_Decoder : public ::protozero::TypedProtoDecoder</*MAX_FIELD_ID=*/2, /*HAS_NONPACKED_REPEATED_FIELDS=*/false> {
public:
KvmSetGuestDebugFtraceEvent_Decoder(const uint8_t* data, size_t len) : TypedProtoDecoder(data, len) {}
explicit KvmSetGuestDebugFtraceEvent_Decoder(const std::string& raw) : TypedProtoDecoder(reinterpret_cast<const uint8_t*>(raw.data()), raw.size()) {}
explicit KvmSetGuestDebugFtraceEvent_Decoder(const ::protozero::ConstBytes& raw) : TypedProtoDecoder(raw.data, raw.size) {}
bool has_guest_debug() const { return at<1>().valid(); }
uint32_t guest_debug() const { return at<1>().as_uint32(); }
bool has_vcpu() const { return at<2>().valid(); }
uint64_t vcpu() const { return at<2>().as_uint64(); }
};
class KvmSetGuestDebugFtraceEvent : public ::protozero::Message {
public:
using Decoder = KvmSetGuestDebugFtraceEvent_Decoder;
enum : int32_t {
kGuestDebugFieldNumber = 1,
kVcpuFieldNumber = 2,
};
static constexpr const char* GetName() { return ".perfetto.protos.KvmSetGuestDebugFtraceEvent"; }
using FieldMetadata_GuestDebug =
::protozero::proto_utils::FieldMetadata<
1,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint32,
uint32_t,
KvmSetGuestDebugFtraceEvent>;
static constexpr FieldMetadata_GuestDebug kGuestDebug{};
void set_guest_debug(uint32_t value) {
static constexpr uint32_t field_id = FieldMetadata_GuestDebug::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint32>
::Append(*this, field_id, value);
}
using FieldMetadata_Vcpu =
::protozero::proto_utils::FieldMetadata<
2,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint64,
uint64_t,
KvmSetGuestDebugFtraceEvent>;
static constexpr FieldMetadata_Vcpu kVcpu{};
void set_vcpu(uint64_t value) {
static constexpr uint32_t field_id = FieldMetadata_Vcpu::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint64>
::Append(*this, field_id, value);
}
};
class KvmMmioEmulateFtraceEvent_Decoder : public ::protozero::TypedProtoDecoder</*MAX_FIELD_ID=*/3, /*HAS_NONPACKED_REPEATED_FIELDS=*/false> {
public:
KvmMmioEmulateFtraceEvent_Decoder(const uint8_t* data, size_t len) : TypedProtoDecoder(data, len) {}
explicit KvmMmioEmulateFtraceEvent_Decoder(const std::string& raw) : TypedProtoDecoder(reinterpret_cast<const uint8_t*>(raw.data()), raw.size()) {}
explicit KvmMmioEmulateFtraceEvent_Decoder(const ::protozero::ConstBytes& raw) : TypedProtoDecoder(raw.data, raw.size) {}
bool has_cpsr() const { return at<1>().valid(); }
uint64_t cpsr() const { return at<1>().as_uint64(); }
bool has_instr() const { return at<2>().valid(); }
uint64_t instr() const { return at<2>().as_uint64(); }
bool has_vcpu_pc() const { return at<3>().valid(); }
uint64_t vcpu_pc() const { return at<3>().as_uint64(); }
};
class KvmMmioEmulateFtraceEvent : public ::protozero::Message {
public:
using Decoder = KvmMmioEmulateFtraceEvent_Decoder;
enum : int32_t {
kCpsrFieldNumber = 1,
kInstrFieldNumber = 2,
kVcpuPcFieldNumber = 3,
};
static constexpr const char* GetName() { return ".perfetto.protos.KvmMmioEmulateFtraceEvent"; }
using FieldMetadata_Cpsr =
::protozero::proto_utils::FieldMetadata<
1,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint64,
uint64_t,
KvmMmioEmulateFtraceEvent>;
static constexpr FieldMetadata_Cpsr kCpsr{};
void set_cpsr(uint64_t value) {
static constexpr uint32_t field_id = FieldMetadata_Cpsr::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint64>
::Append(*this, field_id, value);
}
using FieldMetadata_Instr =
::protozero::proto_utils::FieldMetadata<
2,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint64,
uint64_t,
KvmMmioEmulateFtraceEvent>;
static constexpr FieldMetadata_Instr kInstr{};
void set_instr(uint64_t value) {
static constexpr uint32_t field_id = FieldMetadata_Instr::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint64>
::Append(*this, field_id, value);
}
using FieldMetadata_VcpuPc =
::protozero::proto_utils::FieldMetadata<
3,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint64,
uint64_t,
KvmMmioEmulateFtraceEvent>;
static constexpr FieldMetadata_VcpuPc kVcpuPc{};
void set_vcpu_pc(uint64_t value) {
static constexpr uint32_t field_id = FieldMetadata_VcpuPc::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint64>
::Append(*this, field_id, value);
}
};
class KvmMmioFtraceEvent_Decoder : public ::protozero::TypedProtoDecoder</*MAX_FIELD_ID=*/4, /*HAS_NONPACKED_REPEATED_FIELDS=*/false> {
public:
KvmMmioFtraceEvent_Decoder(const uint8_t* data, size_t len) : TypedProtoDecoder(data, len) {}
explicit KvmMmioFtraceEvent_Decoder(const std::string& raw) : TypedProtoDecoder(reinterpret_cast<const uint8_t*>(raw.data()), raw.size()) {}
explicit KvmMmioFtraceEvent_Decoder(const ::protozero::ConstBytes& raw) : TypedProtoDecoder(raw.data, raw.size) {}
bool has_gpa() const { return at<1>().valid(); }
uint64_t gpa() const { return at<1>().as_uint64(); }
bool has_len() const { return at<2>().valid(); }
uint32_t len() const { return at<2>().as_uint32(); }
bool has_type() const { return at<3>().valid(); }
uint32_t type() const { return at<3>().as_uint32(); }
bool has_val() const { return at<4>().valid(); }
uint64_t val() const { return at<4>().as_uint64(); }
};
class KvmMmioFtraceEvent : public ::protozero::Message {
public:
using Decoder = KvmMmioFtraceEvent_Decoder;
enum : int32_t {
kGpaFieldNumber = 1,
kLenFieldNumber = 2,
kTypeFieldNumber = 3,
kValFieldNumber = 4,
};
static constexpr const char* GetName() { return ".perfetto.protos.KvmMmioFtraceEvent"; }
using FieldMetadata_Gpa =
::protozero::proto_utils::FieldMetadata<
1,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint64,
uint64_t,
KvmMmioFtraceEvent>;
static constexpr FieldMetadata_Gpa kGpa{};
void set_gpa(uint64_t value) {
static constexpr uint32_t field_id = FieldMetadata_Gpa::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint64>
::Append(*this, field_id, value);
}
using FieldMetadata_Len =
::protozero::proto_utils::FieldMetadata<
2,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint32,
uint32_t,
KvmMmioFtraceEvent>;
static constexpr FieldMetadata_Len kLen{};
void set_len(uint32_t value) {
static constexpr uint32_t field_id = FieldMetadata_Len::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint32>
::Append(*this, field_id, value);
}
using FieldMetadata_Type =
::protozero::proto_utils::FieldMetadata<
3,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint32,
uint32_t,
KvmMmioFtraceEvent>;
static constexpr FieldMetadata_Type kType{};
void set_type(uint32_t value) {
static constexpr uint32_t field_id = FieldMetadata_Type::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint32>
::Append(*this, field_id, value);
}
using FieldMetadata_Val =
::protozero::proto_utils::FieldMetadata<
4,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint64,
uint64_t,
KvmMmioFtraceEvent>;
static constexpr FieldMetadata_Val kVal{};
void set_val(uint64_t value) {
static constexpr uint32_t field_id = FieldMetadata_Val::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint64>
::Append(*this, field_id, value);
}
};
class KvmIrqLineFtraceEvent_Decoder : public ::protozero::TypedProtoDecoder</*MAX_FIELD_ID=*/4, /*HAS_NONPACKED_REPEATED_FIELDS=*/false> {
public:
KvmIrqLineFtraceEvent_Decoder(const uint8_t* data, size_t len) : TypedProtoDecoder(data, len) {}
explicit KvmIrqLineFtraceEvent_Decoder(const std::string& raw) : TypedProtoDecoder(reinterpret_cast<const uint8_t*>(raw.data()), raw.size()) {}
explicit KvmIrqLineFtraceEvent_Decoder(const ::protozero::ConstBytes& raw) : TypedProtoDecoder(raw.data, raw.size) {}
bool has_irq_num() const { return at<1>().valid(); }
int32_t irq_num() const { return at<1>().as_int32(); }
bool has_level() const { return at<2>().valid(); }
int32_t level() const { return at<2>().as_int32(); }
bool has_type() const { return at<3>().valid(); }
uint32_t type() const { return at<3>().as_uint32(); }
bool has_vcpu_idx() const { return at<4>().valid(); }
int32_t vcpu_idx() const { return at<4>().as_int32(); }
};
class KvmIrqLineFtraceEvent : public ::protozero::Message {
public:
using Decoder = KvmIrqLineFtraceEvent_Decoder;
enum : int32_t {
kIrqNumFieldNumber = 1,
kLevelFieldNumber = 2,
kTypeFieldNumber = 3,
kVcpuIdxFieldNumber = 4,
};
static constexpr const char* GetName() { return ".perfetto.protos.KvmIrqLineFtraceEvent"; }
using FieldMetadata_IrqNum =
::protozero::proto_utils::FieldMetadata<
1,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kInt32,
int32_t,
KvmIrqLineFtraceEvent>;
static constexpr FieldMetadata_IrqNum kIrqNum{};
void set_irq_num(int32_t value) {
static constexpr uint32_t field_id = FieldMetadata_IrqNum::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kInt32>
::Append(*this, field_id, value);
}
using FieldMetadata_Level =
::protozero::proto_utils::FieldMetadata<
2,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kInt32,
int32_t,
KvmIrqLineFtraceEvent>;
static constexpr FieldMetadata_Level kLevel{};
void set_level(int32_t value) {
static constexpr uint32_t field_id = FieldMetadata_Level::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kInt32>
::Append(*this, field_id, value);
}
using FieldMetadata_Type =
::protozero::proto_utils::FieldMetadata<
3,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint32,
uint32_t,
KvmIrqLineFtraceEvent>;
static constexpr FieldMetadata_Type kType{};
void set_type(uint32_t value) {
static constexpr uint32_t field_id = FieldMetadata_Type::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint32>
::Append(*this, field_id, value);
}
using FieldMetadata_VcpuIdx =
::protozero::proto_utils::FieldMetadata<
4,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kInt32,
int32_t,
KvmIrqLineFtraceEvent>;
static constexpr FieldMetadata_VcpuIdx kVcpuIdx{};
void set_vcpu_idx(int32_t value) {
static constexpr uint32_t field_id = FieldMetadata_VcpuIdx::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kInt32>
::Append(*this, field_id, value);
}
};
class KvmHvcArm64FtraceEvent_Decoder : public ::protozero::TypedProtoDecoder</*MAX_FIELD_ID=*/3, /*HAS_NONPACKED_REPEATED_FIELDS=*/false> {
public:
KvmHvcArm64FtraceEvent_Decoder(const uint8_t* data, size_t len) : TypedProtoDecoder(data, len) {}
explicit KvmHvcArm64FtraceEvent_Decoder(const std::string& raw) : TypedProtoDecoder(reinterpret_cast<const uint8_t*>(raw.data()), raw.size()) {}
explicit KvmHvcArm64FtraceEvent_Decoder(const ::protozero::ConstBytes& raw) : TypedProtoDecoder(raw.data, raw.size) {}
bool has_imm() const { return at<1>().valid(); }
uint64_t imm() const { return at<1>().as_uint64(); }
bool has_r0() const { return at<2>().valid(); }
uint64_t r0() const { return at<2>().as_uint64(); }
bool has_vcpu_pc() const { return at<3>().valid(); }
uint64_t vcpu_pc() const { return at<3>().as_uint64(); }
};
class KvmHvcArm64FtraceEvent : public ::protozero::Message {
public:
using Decoder = KvmHvcArm64FtraceEvent_Decoder;
enum : int32_t {
kImmFieldNumber = 1,
kR0FieldNumber = 2,
kVcpuPcFieldNumber = 3,
};
static constexpr const char* GetName() { return ".perfetto.protos.KvmHvcArm64FtraceEvent"; }
using FieldMetadata_Imm =
::protozero::proto_utils::FieldMetadata<
1,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint64,
uint64_t,
KvmHvcArm64FtraceEvent>;
static constexpr FieldMetadata_Imm kImm{};
void set_imm(uint64_t value) {
static constexpr uint32_t field_id = FieldMetadata_Imm::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint64>
::Append(*this, field_id, value);
}
using FieldMetadata_R0 =
::protozero::proto_utils::FieldMetadata<
2,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint64,
uint64_t,
KvmHvcArm64FtraceEvent>;
static constexpr FieldMetadata_R0 kR0{};
void set_r0(uint64_t value) {
static constexpr uint32_t field_id = FieldMetadata_R0::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint64>
::Append(*this, field_id, value);
}
using FieldMetadata_VcpuPc =
::protozero::proto_utils::FieldMetadata<
3,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint64,
uint64_t,
KvmHvcArm64FtraceEvent>;
static constexpr FieldMetadata_VcpuPc kVcpuPc{};
void set_vcpu_pc(uint64_t value) {
static constexpr uint32_t field_id = FieldMetadata_VcpuPc::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint64>
::Append(*this, field_id, value);
}
};
class KvmHandleSysRegFtraceEvent_Decoder : public ::protozero::TypedProtoDecoder</*MAX_FIELD_ID=*/1, /*HAS_NONPACKED_REPEATED_FIELDS=*/false> {
public:
KvmHandleSysRegFtraceEvent_Decoder(const uint8_t* data, size_t len) : TypedProtoDecoder(data, len) {}
explicit KvmHandleSysRegFtraceEvent_Decoder(const std::string& raw) : TypedProtoDecoder(reinterpret_cast<const uint8_t*>(raw.data()), raw.size()) {}
explicit KvmHandleSysRegFtraceEvent_Decoder(const ::protozero::ConstBytes& raw) : TypedProtoDecoder(raw.data, raw.size) {}
bool has_hsr() const { return at<1>().valid(); }
uint64_t hsr() const { return at<1>().as_uint64(); }
};
class KvmHandleSysRegFtraceEvent : public ::protozero::Message {
public:
using Decoder = KvmHandleSysRegFtraceEvent_Decoder;
enum : int32_t {
kHsrFieldNumber = 1,
};
static constexpr const char* GetName() { return ".perfetto.protos.KvmHandleSysRegFtraceEvent"; }
using FieldMetadata_Hsr =
::protozero::proto_utils::FieldMetadata<
1,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint64,
uint64_t,
KvmHandleSysRegFtraceEvent>;
static constexpr FieldMetadata_Hsr kHsr{};
void set_hsr(uint64_t value) {
static constexpr uint32_t field_id = FieldMetadata_Hsr::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint64>
::Append(*this, field_id, value);
}
};
class KvmGuestFaultFtraceEvent_Decoder : public ::protozero::TypedProtoDecoder</*MAX_FIELD_ID=*/4, /*HAS_NONPACKED_REPEATED_FIELDS=*/false> {
public:
KvmGuestFaultFtraceEvent_Decoder(const uint8_t* data, size_t len) : TypedProtoDecoder(data, len) {}
explicit KvmGuestFaultFtraceEvent_Decoder(const std::string& raw) : TypedProtoDecoder(reinterpret_cast<const uint8_t*>(raw.data()), raw.size()) {}
explicit KvmGuestFaultFtraceEvent_Decoder(const ::protozero::ConstBytes& raw) : TypedProtoDecoder(raw.data, raw.size) {}
bool has_hsr() const { return at<1>().valid(); }
uint64_t hsr() const { return at<1>().as_uint64(); }
bool has_hxfar() const { return at<2>().valid(); }
uint64_t hxfar() const { return at<2>().as_uint64(); }
bool has_ipa() const { return at<3>().valid(); }
uint64_t ipa() const { return at<3>().as_uint64(); }
bool has_vcpu_pc() const { return at<4>().valid(); }
uint64_t vcpu_pc() const { return at<4>().as_uint64(); }
};
class KvmGuestFaultFtraceEvent : public ::protozero::Message {
public:
using Decoder = KvmGuestFaultFtraceEvent_Decoder;
enum : int32_t {
kHsrFieldNumber = 1,
kHxfarFieldNumber = 2,
kIpaFieldNumber = 3,
kVcpuPcFieldNumber = 4,
};
static constexpr const char* GetName() { return ".perfetto.protos.KvmGuestFaultFtraceEvent"; }
using FieldMetadata_Hsr =
::protozero::proto_utils::FieldMetadata<
1,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint64,
uint64_t,
KvmGuestFaultFtraceEvent>;
static constexpr FieldMetadata_Hsr kHsr{};
void set_hsr(uint64_t value) {
static constexpr uint32_t field_id = FieldMetadata_Hsr::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint64>
::Append(*this, field_id, value);
}
using FieldMetadata_Hxfar =
::protozero::proto_utils::FieldMetadata<
2,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint64,
uint64_t,
KvmGuestFaultFtraceEvent>;
static constexpr FieldMetadata_Hxfar kHxfar{};
void set_hxfar(uint64_t value) {
static constexpr uint32_t field_id = FieldMetadata_Hxfar::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint64>
::Append(*this, field_id, value);
}
using FieldMetadata_Ipa =
::protozero::proto_utils::FieldMetadata<
3,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint64,
uint64_t,
KvmGuestFaultFtraceEvent>;
static constexpr FieldMetadata_Ipa kIpa{};
void set_ipa(uint64_t value) {
static constexpr uint32_t field_id = FieldMetadata_Ipa::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint64>
::Append(*this, field_id, value);
}
using FieldMetadata_VcpuPc =
::protozero::proto_utils::FieldMetadata<
4,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint64,
uint64_t,
KvmGuestFaultFtraceEvent>;
static constexpr FieldMetadata_VcpuPc kVcpuPc{};
void set_vcpu_pc(uint64_t value) {
static constexpr uint32_t field_id = FieldMetadata_VcpuPc::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint64>
::Append(*this, field_id, value);
}
};
class KvmGetTimerMapFtraceEvent_Decoder : public ::protozero::TypedProtoDecoder</*MAX_FIELD_ID=*/4, /*HAS_NONPACKED_REPEATED_FIELDS=*/false> {
public:
KvmGetTimerMapFtraceEvent_Decoder(const uint8_t* data, size_t len) : TypedProtoDecoder(data, len) {}
explicit KvmGetTimerMapFtraceEvent_Decoder(const std::string& raw) : TypedProtoDecoder(reinterpret_cast<const uint8_t*>(raw.data()), raw.size()) {}
explicit KvmGetTimerMapFtraceEvent_Decoder(const ::protozero::ConstBytes& raw) : TypedProtoDecoder(raw.data, raw.size) {}
bool has_direct_ptimer() const { return at<1>().valid(); }
int32_t direct_ptimer() const { return at<1>().as_int32(); }
bool has_direct_vtimer() const { return at<2>().valid(); }
int32_t direct_vtimer() const { return at<2>().as_int32(); }
bool has_emul_ptimer() const { return at<3>().valid(); }
int32_t emul_ptimer() const { return at<3>().as_int32(); }
bool has_vcpu_id() const { return at<4>().valid(); }
uint64_t vcpu_id() const { return at<4>().as_uint64(); }
};
class KvmGetTimerMapFtraceEvent : public ::protozero::Message {
public:
using Decoder = KvmGetTimerMapFtraceEvent_Decoder;
enum : int32_t {
kDirectPtimerFieldNumber = 1,
kDirectVtimerFieldNumber = 2,
kEmulPtimerFieldNumber = 3,
kVcpuIdFieldNumber = 4,
};
static constexpr const char* GetName() { return ".perfetto.protos.KvmGetTimerMapFtraceEvent"; }
using FieldMetadata_DirectPtimer =
::protozero::proto_utils::FieldMetadata<
1,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kInt32,
int32_t,
KvmGetTimerMapFtraceEvent>;
static constexpr FieldMetadata_DirectPtimer kDirectPtimer{};
void set_direct_ptimer(int32_t value) {
static constexpr uint32_t field_id = FieldMetadata_DirectPtimer::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kInt32>
::Append(*this, field_id, value);
}
using FieldMetadata_DirectVtimer =
::protozero::proto_utils::FieldMetadata<
2,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kInt32,
int32_t,
KvmGetTimerMapFtraceEvent>;
static constexpr FieldMetadata_DirectVtimer kDirectVtimer{};
void set_direct_vtimer(int32_t value) {
static constexpr uint32_t field_id = FieldMetadata_DirectVtimer::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kInt32>
::Append(*this, field_id, value);
}
using FieldMetadata_EmulPtimer =
::protozero::proto_utils::FieldMetadata<
3,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kInt32,
int32_t,
KvmGetTimerMapFtraceEvent>;
static constexpr FieldMetadata_EmulPtimer kEmulPtimer{};
void set_emul_ptimer(int32_t value) {
static constexpr uint32_t field_id = FieldMetadata_EmulPtimer::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kInt32>
::Append(*this, field_id, value);
}
using FieldMetadata_VcpuId =
::protozero::proto_utils::FieldMetadata<
4,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint64,
uint64_t,
KvmGetTimerMapFtraceEvent>;
static constexpr FieldMetadata_VcpuId kVcpuId{};
void set_vcpu_id(uint64_t value) {
static constexpr uint32_t field_id = FieldMetadata_VcpuId::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint64>
::Append(*this, field_id, value);
}
};
class KvmFpuFtraceEvent_Decoder : public ::protozero::TypedProtoDecoder</*MAX_FIELD_ID=*/1, /*HAS_NONPACKED_REPEATED_FIELDS=*/false> {
public:
KvmFpuFtraceEvent_Decoder(const uint8_t* data, size_t len) : TypedProtoDecoder(data, len) {}
explicit KvmFpuFtraceEvent_Decoder(const std::string& raw) : TypedProtoDecoder(reinterpret_cast<const uint8_t*>(raw.data()), raw.size()) {}
explicit KvmFpuFtraceEvent_Decoder(const ::protozero::ConstBytes& raw) : TypedProtoDecoder(raw.data, raw.size) {}
bool has_load() const { return at<1>().valid(); }
uint32_t load() const { return at<1>().as_uint32(); }
};
class KvmFpuFtraceEvent : public ::protozero::Message {
public:
using Decoder = KvmFpuFtraceEvent_Decoder;
enum : int32_t {
kLoadFieldNumber = 1,
};
static constexpr const char* GetName() { return ".perfetto.protos.KvmFpuFtraceEvent"; }
using FieldMetadata_Load =
::protozero::proto_utils::FieldMetadata<
1,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint32,
uint32_t,
KvmFpuFtraceEvent>;
static constexpr FieldMetadata_Load kLoad{};
void set_load(uint32_t value) {
static constexpr uint32_t field_id = FieldMetadata_Load::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint32>
::Append(*this, field_id, value);
}
};
class KvmExitFtraceEvent_Decoder : public ::protozero::TypedProtoDecoder</*MAX_FIELD_ID=*/3, /*HAS_NONPACKED_REPEATED_FIELDS=*/false> {
public:
KvmExitFtraceEvent_Decoder(const uint8_t* data, size_t len) : TypedProtoDecoder(data, len) {}
explicit KvmExitFtraceEvent_Decoder(const std::string& raw) : TypedProtoDecoder(reinterpret_cast<const uint8_t*>(raw.data()), raw.size()) {}
explicit KvmExitFtraceEvent_Decoder(const ::protozero::ConstBytes& raw) : TypedProtoDecoder(raw.data, raw.size) {}
bool has_esr_ec() const { return at<1>().valid(); }
uint32_t esr_ec() const { return at<1>().as_uint32(); }
bool has_ret() const { return at<2>().valid(); }
int32_t ret() const { return at<2>().as_int32(); }
bool has_vcpu_pc() const { return at<3>().valid(); }
uint64_t vcpu_pc() const { return at<3>().as_uint64(); }
};
class KvmExitFtraceEvent : public ::protozero::Message {
public:
using Decoder = KvmExitFtraceEvent_Decoder;
enum : int32_t {
kEsrEcFieldNumber = 1,
kRetFieldNumber = 2,
kVcpuPcFieldNumber = 3,
};
static constexpr const char* GetName() { return ".perfetto.protos.KvmExitFtraceEvent"; }
using FieldMetadata_EsrEc =
::protozero::proto_utils::FieldMetadata<
1,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint32,
uint32_t,
KvmExitFtraceEvent>;
static constexpr FieldMetadata_EsrEc kEsrEc{};
void set_esr_ec(uint32_t value) {
static constexpr uint32_t field_id = FieldMetadata_EsrEc::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint32>
::Append(*this, field_id, value);
}
using FieldMetadata_Ret =
::protozero::proto_utils::FieldMetadata<
2,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kInt32,
int32_t,
KvmExitFtraceEvent>;
static constexpr FieldMetadata_Ret kRet{};
void set_ret(int32_t value) {
static constexpr uint32_t field_id = FieldMetadata_Ret::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kInt32>
::Append(*this, field_id, value);
}
using FieldMetadata_VcpuPc =
::protozero::proto_utils::FieldMetadata<
3,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint64,
uint64_t,
KvmExitFtraceEvent>;
static constexpr FieldMetadata_VcpuPc kVcpuPc{};
void set_vcpu_pc(uint64_t value) {
static constexpr uint32_t field_id = FieldMetadata_VcpuPc::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint64>
::Append(*this, field_id, value);
}
};
class KvmEntryFtraceEvent_Decoder : public ::protozero::TypedProtoDecoder</*MAX_FIELD_ID=*/1, /*HAS_NONPACKED_REPEATED_FIELDS=*/false> {
public:
KvmEntryFtraceEvent_Decoder(const uint8_t* data, size_t len) : TypedProtoDecoder(data, len) {}
explicit KvmEntryFtraceEvent_Decoder(const std::string& raw) : TypedProtoDecoder(reinterpret_cast<const uint8_t*>(raw.data()), raw.size()) {}
explicit KvmEntryFtraceEvent_Decoder(const ::protozero::ConstBytes& raw) : TypedProtoDecoder(raw.data, raw.size) {}
bool has_vcpu_pc() const { return at<1>().valid(); }
uint64_t vcpu_pc() const { return at<1>().as_uint64(); }
};
class KvmEntryFtraceEvent : public ::protozero::Message {
public:
using Decoder = KvmEntryFtraceEvent_Decoder;
enum : int32_t {
kVcpuPcFieldNumber = 1,
};
static constexpr const char* GetName() { return ".perfetto.protos.KvmEntryFtraceEvent"; }
using FieldMetadata_VcpuPc =
::protozero::proto_utils::FieldMetadata<
1,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint64,
uint64_t,
KvmEntryFtraceEvent>;
static constexpr FieldMetadata_VcpuPc kVcpuPc{};
void set_vcpu_pc(uint64_t value) {
static constexpr uint32_t field_id = FieldMetadata_VcpuPc::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint64>
::Append(*this, field_id, value);
}
};
class KvmArmSetupDebugFtraceEvent_Decoder : public ::protozero::TypedProtoDecoder</*MAX_FIELD_ID=*/2, /*HAS_NONPACKED_REPEATED_FIELDS=*/false> {
public:
KvmArmSetupDebugFtraceEvent_Decoder(const uint8_t* data, size_t len) : TypedProtoDecoder(data, len) {}
explicit KvmArmSetupDebugFtraceEvent_Decoder(const std::string& raw) : TypedProtoDecoder(reinterpret_cast<const uint8_t*>(raw.data()), raw.size()) {}
explicit KvmArmSetupDebugFtraceEvent_Decoder(const ::protozero::ConstBytes& raw) : TypedProtoDecoder(raw.data, raw.size) {}
bool has_guest_debug() const { return at<1>().valid(); }
uint32_t guest_debug() const { return at<1>().as_uint32(); }
bool has_vcpu() const { return at<2>().valid(); }
uint64_t vcpu() const { return at<2>().as_uint64(); }
};
class KvmArmSetupDebugFtraceEvent : public ::protozero::Message {
public:
using Decoder = KvmArmSetupDebugFtraceEvent_Decoder;
enum : int32_t {
kGuestDebugFieldNumber = 1,
kVcpuFieldNumber = 2,
};
static constexpr const char* GetName() { return ".perfetto.protos.KvmArmSetupDebugFtraceEvent"; }
using FieldMetadata_GuestDebug =
::protozero::proto_utils::FieldMetadata<
1,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint32,
uint32_t,
KvmArmSetupDebugFtraceEvent>;
static constexpr FieldMetadata_GuestDebug kGuestDebug{};
void set_guest_debug(uint32_t value) {
static constexpr uint32_t field_id = FieldMetadata_GuestDebug::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint32>
::Append(*this, field_id, value);
}
using FieldMetadata_Vcpu =
::protozero::proto_utils::FieldMetadata<
2,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint64,
uint64_t,
KvmArmSetupDebugFtraceEvent>;
static constexpr FieldMetadata_Vcpu kVcpu{};
void set_vcpu(uint64_t value) {
static constexpr uint32_t field_id = FieldMetadata_Vcpu::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint64>
::Append(*this, field_id, value);
}
};
class KvmArmSetRegsetFtraceEvent_Decoder : public ::protozero::TypedProtoDecoder</*MAX_FIELD_ID=*/2, /*HAS_NONPACKED_REPEATED_FIELDS=*/false> {
public:
KvmArmSetRegsetFtraceEvent_Decoder(const uint8_t* data, size_t len) : TypedProtoDecoder(data, len) {}
explicit KvmArmSetRegsetFtraceEvent_Decoder(const std::string& raw) : TypedProtoDecoder(reinterpret_cast<const uint8_t*>(raw.data()), raw.size()) {}
explicit KvmArmSetRegsetFtraceEvent_Decoder(const ::protozero::ConstBytes& raw) : TypedProtoDecoder(raw.data, raw.size) {}
bool has_len() const { return at<1>().valid(); }
int32_t len() const { return at<1>().as_int32(); }
bool has_name() const { return at<2>().valid(); }
::protozero::ConstChars name() const { return at<2>().as_string(); }
};
class KvmArmSetRegsetFtraceEvent : public ::protozero::Message {
public:
using Decoder = KvmArmSetRegsetFtraceEvent_Decoder;
enum : int32_t {
kLenFieldNumber = 1,
kNameFieldNumber = 2,
};
static constexpr const char* GetName() { return ".perfetto.protos.KvmArmSetRegsetFtraceEvent"; }
using FieldMetadata_Len =
::protozero::proto_utils::FieldMetadata<
1,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kInt32,
int32_t,
KvmArmSetRegsetFtraceEvent>;
static constexpr FieldMetadata_Len kLen{};
void set_len(int32_t value) {
static constexpr uint32_t field_id = FieldMetadata_Len::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kInt32>
::Append(*this, field_id, value);
}
using FieldMetadata_Name =
::protozero::proto_utils::FieldMetadata<
2,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kString,
std::string,
KvmArmSetRegsetFtraceEvent>;
static constexpr FieldMetadata_Name kName{};
void set_name(const char* data, size_t size) {
AppendBytes(FieldMetadata_Name::kFieldId, data, size);
}
void set_name(::protozero::ConstChars chars) {
AppendBytes(FieldMetadata_Name::kFieldId, chars.data, chars.size);
}
void set_name(std::string value) {
static constexpr uint32_t field_id = FieldMetadata_Name::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kString>
::Append(*this, field_id, value);
}
};
class KvmArmSetDreg32FtraceEvent_Decoder : public ::protozero::TypedProtoDecoder</*MAX_FIELD_ID=*/2, /*HAS_NONPACKED_REPEATED_FIELDS=*/false> {
public:
KvmArmSetDreg32FtraceEvent_Decoder(const uint8_t* data, size_t len) : TypedProtoDecoder(data, len) {}
explicit KvmArmSetDreg32FtraceEvent_Decoder(const std::string& raw) : TypedProtoDecoder(reinterpret_cast<const uint8_t*>(raw.data()), raw.size()) {}
explicit KvmArmSetDreg32FtraceEvent_Decoder(const ::protozero::ConstBytes& raw) : TypedProtoDecoder(raw.data, raw.size) {}
bool has_name() const { return at<1>().valid(); }
::protozero::ConstChars name() const { return at<1>().as_string(); }
bool has_value() const { return at<2>().valid(); }
uint32_t value() const { return at<2>().as_uint32(); }
};
class KvmArmSetDreg32FtraceEvent : public ::protozero::Message {
public:
using Decoder = KvmArmSetDreg32FtraceEvent_Decoder;
enum : int32_t {
kNameFieldNumber = 1,
kValueFieldNumber = 2,
};
static constexpr const char* GetName() { return ".perfetto.protos.KvmArmSetDreg32FtraceEvent"; }
using FieldMetadata_Name =
::protozero::proto_utils::FieldMetadata<
1,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kString,
std::string,
KvmArmSetDreg32FtraceEvent>;
static constexpr FieldMetadata_Name kName{};
void set_name(const char* data, size_t size) {
AppendBytes(FieldMetadata_Name::kFieldId, data, size);
}
void set_name(::protozero::ConstChars chars) {
AppendBytes(FieldMetadata_Name::kFieldId, chars.data, chars.size);
}
void set_name(std::string value) {
static constexpr uint32_t field_id = FieldMetadata_Name::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kString>
::Append(*this, field_id, value);
}
using FieldMetadata_Value =
::protozero::proto_utils::FieldMetadata<
2,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint32,
uint32_t,
KvmArmSetDreg32FtraceEvent>;
static constexpr FieldMetadata_Value kValue{};
void set_value(uint32_t value) {
static constexpr uint32_t field_id = FieldMetadata_Value::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint32>
::Append(*this, field_id, value);
}
};
class KvmArmClearDebugFtraceEvent_Decoder : public ::protozero::TypedProtoDecoder</*MAX_FIELD_ID=*/1, /*HAS_NONPACKED_REPEATED_FIELDS=*/false> {
public:
KvmArmClearDebugFtraceEvent_Decoder(const uint8_t* data, size_t len) : TypedProtoDecoder(data, len) {}
explicit KvmArmClearDebugFtraceEvent_Decoder(const std::string& raw) : TypedProtoDecoder(reinterpret_cast<const uint8_t*>(raw.data()), raw.size()) {}
explicit KvmArmClearDebugFtraceEvent_Decoder(const ::protozero::ConstBytes& raw) : TypedProtoDecoder(raw.data, raw.size) {}
bool has_guest_debug() const { return at<1>().valid(); }
uint32_t guest_debug() const { return at<1>().as_uint32(); }
};
class KvmArmClearDebugFtraceEvent : public ::protozero::Message {
public:
using Decoder = KvmArmClearDebugFtraceEvent_Decoder;
enum : int32_t {
kGuestDebugFieldNumber = 1,
};
static constexpr const char* GetName() { return ".perfetto.protos.KvmArmClearDebugFtraceEvent"; }
using FieldMetadata_GuestDebug =
::protozero::proto_utils::FieldMetadata<
1,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint32,
uint32_t,
KvmArmClearDebugFtraceEvent>;
static constexpr FieldMetadata_GuestDebug kGuestDebug{};
void set_guest_debug(uint32_t value) {
static constexpr uint32_t field_id = FieldMetadata_GuestDebug::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint32>
::Append(*this, field_id, value);
}
};
class KvmAgePageFtraceEvent_Decoder : public ::protozero::TypedProtoDecoder</*MAX_FIELD_ID=*/4, /*HAS_NONPACKED_REPEATED_FIELDS=*/false> {
public:
KvmAgePageFtraceEvent_Decoder(const uint8_t* data, size_t len) : TypedProtoDecoder(data, len) {}
explicit KvmAgePageFtraceEvent_Decoder(const std::string& raw) : TypedProtoDecoder(reinterpret_cast<const uint8_t*>(raw.data()), raw.size()) {}
explicit KvmAgePageFtraceEvent_Decoder(const ::protozero::ConstBytes& raw) : TypedProtoDecoder(raw.data, raw.size) {}
bool has_gfn() const { return at<1>().valid(); }
uint64_t gfn() const { return at<1>().as_uint64(); }
bool has_hva() const { return at<2>().valid(); }
uint64_t hva() const { return at<2>().as_uint64(); }
bool has_level() const { return at<3>().valid(); }
uint32_t level() const { return at<3>().as_uint32(); }
bool has_referenced() const { return at<4>().valid(); }
uint32_t referenced() const { return at<4>().as_uint32(); }
};
class KvmAgePageFtraceEvent : public ::protozero::Message {
public:
using Decoder = KvmAgePageFtraceEvent_Decoder;
enum : int32_t {
kGfnFieldNumber = 1,
kHvaFieldNumber = 2,
kLevelFieldNumber = 3,
kReferencedFieldNumber = 4,
};
static constexpr const char* GetName() { return ".perfetto.protos.KvmAgePageFtraceEvent"; }
using FieldMetadata_Gfn =
::protozero::proto_utils::FieldMetadata<
1,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint64,
uint64_t,
KvmAgePageFtraceEvent>;
static constexpr FieldMetadata_Gfn kGfn{};
void set_gfn(uint64_t value) {
static constexpr uint32_t field_id = FieldMetadata_Gfn::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint64>
::Append(*this, field_id, value);
}
using FieldMetadata_Hva =
::protozero::proto_utils::FieldMetadata<
2,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint64,
uint64_t,
KvmAgePageFtraceEvent>;
static constexpr FieldMetadata_Hva kHva{};
void set_hva(uint64_t value) {
static constexpr uint32_t field_id = FieldMetadata_Hva::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint64>
::Append(*this, field_id, value);
}
using FieldMetadata_Level =
::protozero::proto_utils::FieldMetadata<
3,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint32,
uint32_t,
KvmAgePageFtraceEvent>;
static constexpr FieldMetadata_Level kLevel{};
void set_level(uint32_t value) {
static constexpr uint32_t field_id = FieldMetadata_Level::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint32>
::Append(*this, field_id, value);
}
using FieldMetadata_Referenced =
::protozero::proto_utils::FieldMetadata<
4,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint32,
uint32_t,
KvmAgePageFtraceEvent>;
static constexpr FieldMetadata_Referenced kReferenced{};
void set_referenced(uint32_t value) {
static constexpr uint32_t field_id = FieldMetadata_Referenced::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint32>
::Append(*this, field_id, value);
}
};
class KvmAgeHvaFtraceEvent_Decoder : public ::protozero::TypedProtoDecoder</*MAX_FIELD_ID=*/2, /*HAS_NONPACKED_REPEATED_FIELDS=*/false> {
public:
KvmAgeHvaFtraceEvent_Decoder(const uint8_t* data, size_t len) : TypedProtoDecoder(data, len) {}
explicit KvmAgeHvaFtraceEvent_Decoder(const std::string& raw) : TypedProtoDecoder(reinterpret_cast<const uint8_t*>(raw.data()), raw.size()) {}
explicit KvmAgeHvaFtraceEvent_Decoder(const ::protozero::ConstBytes& raw) : TypedProtoDecoder(raw.data, raw.size) {}
bool has_end() const { return at<1>().valid(); }
uint64_t end() const { return at<1>().as_uint64(); }
bool has_start() const { return at<2>().valid(); }
uint64_t start() const { return at<2>().as_uint64(); }
};
class KvmAgeHvaFtraceEvent : public ::protozero::Message {
public:
using Decoder = KvmAgeHvaFtraceEvent_Decoder;
enum : int32_t {
kEndFieldNumber = 1,
kStartFieldNumber = 2,
};
static constexpr const char* GetName() { return ".perfetto.protos.KvmAgeHvaFtraceEvent"; }
using FieldMetadata_End =
::protozero::proto_utils::FieldMetadata<
1,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint64,
uint64_t,
KvmAgeHvaFtraceEvent>;
static constexpr FieldMetadata_End kEnd{};
void set_end(uint64_t value) {
static constexpr uint32_t field_id = FieldMetadata_End::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint64>
::Append(*this, field_id, value);
}
using FieldMetadata_Start =
::protozero::proto_utils::FieldMetadata<
2,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint64,
uint64_t,
KvmAgeHvaFtraceEvent>;
static constexpr FieldMetadata_Start kStart{};
void set_start(uint64_t value) {
static constexpr uint32_t field_id = FieldMetadata_Start::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint64>
::Append(*this, field_id, value);
}
};
class KvmAckIrqFtraceEvent_Decoder : public ::protozero::TypedProtoDecoder</*MAX_FIELD_ID=*/2, /*HAS_NONPACKED_REPEATED_FIELDS=*/false> {
public:
KvmAckIrqFtraceEvent_Decoder(const uint8_t* data, size_t len) : TypedProtoDecoder(data, len) {}
explicit KvmAckIrqFtraceEvent_Decoder(const std::string& raw) : TypedProtoDecoder(reinterpret_cast<const uint8_t*>(raw.data()), raw.size()) {}
explicit KvmAckIrqFtraceEvent_Decoder(const ::protozero::ConstBytes& raw) : TypedProtoDecoder(raw.data, raw.size) {}
bool has_irqchip() const { return at<1>().valid(); }
uint32_t irqchip() const { return at<1>().as_uint32(); }
bool has_pin() const { return at<2>().valid(); }
uint32_t pin() const { return at<2>().as_uint32(); }
};
class KvmAckIrqFtraceEvent : public ::protozero::Message {
public:
using Decoder = KvmAckIrqFtraceEvent_Decoder;
enum : int32_t {
kIrqchipFieldNumber = 1,
kPinFieldNumber = 2,
};
static constexpr const char* GetName() { return ".perfetto.protos.KvmAckIrqFtraceEvent"; }
using FieldMetadata_Irqchip =
::protozero::proto_utils::FieldMetadata<
1,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint32,
uint32_t,
KvmAckIrqFtraceEvent>;
static constexpr FieldMetadata_Irqchip kIrqchip{};
void set_irqchip(uint32_t value) {
static constexpr uint32_t field_id = FieldMetadata_Irqchip::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint32>
::Append(*this, field_id, value);
}
using FieldMetadata_Pin =
::protozero::proto_utils::FieldMetadata<
2,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint32,
uint32_t,
KvmAckIrqFtraceEvent>;
static constexpr FieldMetadata_Pin kPin{};
void set_pin(uint32_t value) {
static constexpr uint32_t field_id = FieldMetadata_Pin::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint32>
::Append(*this, field_id, value);
}
};
class KvmAccessFaultFtraceEvent_Decoder : public ::protozero::TypedProtoDecoder</*MAX_FIELD_ID=*/1, /*HAS_NONPACKED_REPEATED_FIELDS=*/false> {
public:
KvmAccessFaultFtraceEvent_Decoder(const uint8_t* data, size_t len) : TypedProtoDecoder(data, len) {}
explicit KvmAccessFaultFtraceEvent_Decoder(const std::string& raw) : TypedProtoDecoder(reinterpret_cast<const uint8_t*>(raw.data()), raw.size()) {}
explicit KvmAccessFaultFtraceEvent_Decoder(const ::protozero::ConstBytes& raw) : TypedProtoDecoder(raw.data, raw.size) {}
bool has_ipa() const { return at<1>().valid(); }
uint64_t ipa() const { return at<1>().as_uint64(); }
};
class KvmAccessFaultFtraceEvent : public ::protozero::Message {
public:
using Decoder = KvmAccessFaultFtraceEvent_Decoder;
enum : int32_t {
kIpaFieldNumber = 1,
};
static constexpr const char* GetName() { return ".perfetto.protos.KvmAccessFaultFtraceEvent"; }
using FieldMetadata_Ipa =
::protozero::proto_utils::FieldMetadata<
1,
::protozero::proto_utils::RepetitionType::kNotRepeated,
::protozero::proto_utils::ProtoSchemaType::kUint64,
uint64_t,
KvmAccessFaultFtraceEvent>;
static constexpr FieldMetadata_Ipa kIpa{};
void set_ipa(uint64_t value) {
static constexpr uint32_t field_id = FieldMetadata_Ipa::kFieldId;
// Call the appropriate protozero::Message::Append(field_id, ...)
// method based on the type of the field.
::protozero::internal::FieldWriter<
::protozero::proto_utils::ProtoSchemaType::kUint64>
::Append(*this, field_id, value);
}
};
} // Namespace.
} // Namespace.
} // Namespace.
#endif // Include guard.