/external/perfetto/src/trace_processor/importers/ftrace/ |
D | ftrace_descriptors.cc | 36 {"ip", ProtoSchemaType::kUint64}, 37 {"buf", ProtoSchemaType::kString}, 45 {"prev_comm", ProtoSchemaType::kString}, 46 {"prev_pid", ProtoSchemaType::kInt32}, 47 {"prev_prio", ProtoSchemaType::kInt32}, 48 {"prev_state", ProtoSchemaType::kInt64}, 49 {"next_comm", ProtoSchemaType::kString}, 50 {"next_pid", ProtoSchemaType::kInt32}, 51 {"next_prio", ProtoSchemaType::kInt32}, 65 {"state", ProtoSchemaType::kUint32}, [all …]
|
D | ftrace_descriptors.h | 28 using protozero::proto_utils::ProtoSchemaType; 42 ProtoSchemaType type;
|
D | ftrace_parser.cc | 633 ProtoSchemaType type = m->fields[field_id].type; in ParseTypedFtraceToRaw() 643 PERFETTO_CHECK(type == ProtoSchemaType::kUint64); in ParseTypedFtraceToRaw() 662 case ProtoSchemaType::kInt32: in ParseTypedFtraceToRaw() 663 case ProtoSchemaType::kInt64: in ParseTypedFtraceToRaw() 664 case ProtoSchemaType::kSfixed32: in ParseTypedFtraceToRaw() 665 case ProtoSchemaType::kSfixed64: in ParseTypedFtraceToRaw() 666 case ProtoSchemaType::kSint32: in ParseTypedFtraceToRaw() 667 case ProtoSchemaType::kSint64: in ParseTypedFtraceToRaw() 668 case ProtoSchemaType::kBool: in ParseTypedFtraceToRaw() 669 case ProtoSchemaType::kEnum: { in ParseTypedFtraceToRaw() [all …]
|
/external/perfetto/src/traced/probes/ftrace/ |
D | event_info.cc | 26 using protozero::proto_utils::ProtoSchemaType; 37 "debug_id", 1, ProtoSchemaType::kInt32, in GetStaticEventInfo() 40 "target_node", 2, ProtoSchemaType::kInt32, in GetStaticEventInfo() 43 "to_proc", 3, ProtoSchemaType::kInt32, in GetStaticEventInfo() 46 "to_thread", 4, ProtoSchemaType::kInt32, in GetStaticEventInfo() 49 "reply", 5, ProtoSchemaType::kInt32, in GetStaticEventInfo() 52 "code", 6, ProtoSchemaType::kUint32, in GetStaticEventInfo() 55 "flags", 7, ProtoSchemaType::kUint32, in GetStaticEventInfo() 65 "debug_id", 1, ProtoSchemaType::kInt32, in GetStaticEventInfo() 75 "proc", 1, ProtoSchemaType::kInt32, in GetStaticEventInfo() [all …]
|
D | event_info_constants.cc | 20 using protozero::proto_utils::ProtoSchemaType; 25 ProtoSchemaType proto_field_type) { in StaticField() 37 fields.push_back(StaticField("common_pid", 2, ProtoSchemaType::kInt32)); in GetStaticCommonFieldsInfo() 43 ProtoSchemaType proto, in SetTranslationStrategy() 45 if (ftrace == kFtraceCommonPid32 && proto == ProtoSchemaType::kInt32) { in SetTranslationStrategy() 47 } else if (ftrace == kFtraceCommonPid32 && proto == ProtoSchemaType::kInt64) { in SetTranslationStrategy() 49 } else if (ftrace == kFtraceInode32 && proto == ProtoSchemaType::kUint64) { in SetTranslationStrategy() 51 } else if (ftrace == kFtraceInode64 && proto == ProtoSchemaType::kUint64) { in SetTranslationStrategy() 53 } else if (ftrace == kFtracePid32 && proto == ProtoSchemaType::kInt32) { in SetTranslationStrategy() 55 } else if (ftrace == kFtracePid32 && proto == ProtoSchemaType::kInt64) { in SetTranslationStrategy() [all …]
|
D | event_info_unittest.cc | 24 using protozero::proto_utils::ProtoSchemaType; 74 ASSERT_FALSE(SetTranslationStrategy(kFtraceCString, ProtoSchemaType::kUint64, in TEST() 77 ASSERT_TRUE(SetTranslationStrategy(kFtraceCString, ProtoSchemaType::kString, in TEST() 81 SetTranslationStrategy(kFtracePid32, ProtoSchemaType::kInt32, &strategy)); in TEST() 83 ASSERT_TRUE(SetTranslationStrategy(kFtraceInode32, ProtoSchemaType::kUint64, in TEST() 86 ASSERT_TRUE(SetTranslationStrategy(kFtraceInode64, ProtoSchemaType::kUint64, in TEST() 89 ASSERT_TRUE(SetTranslationStrategy(kFtraceDevId32, ProtoSchemaType::kUint64, in TEST() 92 ASSERT_TRUE(SetTranslationStrategy(kFtraceDevId64, ProtoSchemaType::kUint64, in TEST() 96 ProtoSchemaType::kInt32, &strategy)); in TEST()
|
D | proto_translation_table_unittest.cc | 42 using protozero::proto_utils::ProtoSchemaType; 103 EXPECT_EQ(event->fields.at(0).proto_field_type, ProtoSchemaType::kString); in TEST_P() 194 field->proto_field_type = ProtoSchemaType::kString; in TEST_P() 203 field->proto_field_type = ProtoSchemaType::kString; in TEST_P() 212 field->proto_field_type = ProtoSchemaType::kString; in TEST_P() 221 field->proto_field_type = ProtoSchemaType::kUint64; in TEST_P() 475 EXPECT_EQ(str_field.proto_field_type, ProtoSchemaType::kString); in TEST() 485 EXPECT_EQ(bool_field.proto_field_type, ProtoSchemaType::kUint64); in TEST() 495 EXPECT_EQ(int_field.proto_field_type, ProtoSchemaType::kInt64); in TEST() 505 EXPECT_EQ(uint_field.proto_field_type, ProtoSchemaType::kUint64); in TEST()
|
D | cpu_reader_unittest.cc | 46 using protozero::proto_utils::ProtoSchemaType; 897 field->proto_field_type = ProtoSchemaType::kUint32; in TEST_F() 909 field->proto_field_type = ProtoSchemaType::kInt32; in TEST_F() 931 field->proto_field_type = ProtoSchemaType::kUint32; in TEST_F() 942 field->proto_field_type = ProtoSchemaType::kInt32; in TEST_F() 953 field->proto_field_type = ProtoSchemaType::kUint64; in TEST_F() 964 field->proto_field_type = ProtoSchemaType::kUint64; in TEST_F() 975 field->proto_field_type = ProtoSchemaType::kUint64; in TEST_F() 986 field->proto_field_type = ProtoSchemaType::kUint64; in TEST_F() 997 field->proto_field_type = ProtoSchemaType::kString; in TEST_F() [all …]
|
D | event_info_constants.h | 145 protozero::proto_utils::ProtoSchemaType proto_field_type; 171 protozero::proto_utils::ProtoSchemaType proto,
|
D | proto_translation_table.cc | 38 using protozero::proto_utils::ProtoSchemaType; 214 ProtoSchemaType* proto_type, in SetProtoType() 221 *proto_type = ProtoSchemaType::kString; in SetProtoType() 230 *proto_type = ProtoSchemaType::kInt64; in SetProtoType() 243 *proto_type = ProtoSchemaType::kUint64; in SetProtoType()
|
/external/perfetto/include/perfetto/protozero/ |
D | proto_utils.h | 42 enum class ProtoSchemaType { enum 64 inline const char* ProtoSchemaToString(ProtoSchemaType v) { in ProtoSchemaToString() 66 case ProtoSchemaType::kUnknown: in ProtoSchemaToString() 68 case ProtoSchemaType::kDouble: in ProtoSchemaToString() 70 case ProtoSchemaType::kFloat: in ProtoSchemaToString() 72 case ProtoSchemaType::kInt64: in ProtoSchemaToString() 74 case ProtoSchemaType::kUint64: in ProtoSchemaToString() 76 case ProtoSchemaType::kInt32: in ProtoSchemaToString() 78 case ProtoSchemaType::kFixed64: in ProtoSchemaToString() 80 case ProtoSchemaType::kFixed32: in ProtoSchemaToString() [all …]
|
D | field_writer.h | 26 template <proto_utils::ProtoSchemaType proto_schema_type> 28 static_assert(proto_schema_type != proto_utils::ProtoSchemaType::kMessage, 33 struct FieldWriter<proto_utils::ProtoSchemaType::kDouble> { 40 struct FieldWriter<proto_utils::ProtoSchemaType::kFloat> { 47 struct FieldWriter<proto_utils::ProtoSchemaType::kBool> { 54 struct FieldWriter<proto_utils::ProtoSchemaType::kInt32> { 63 struct FieldWriter<proto_utils::ProtoSchemaType::kInt64> { 72 struct FieldWriter<proto_utils::ProtoSchemaType::kUint32> { 81 struct FieldWriter<proto_utils::ProtoSchemaType::kUint64> { 90 struct FieldWriter<proto_utils::ProtoSchemaType::kSint32> { [all …]
|
/external/perfetto/include/perfetto/tracing/ |
D | traced_proto.h | 89 using ProtoSchemaType = protozero::proto_utils::ProtoSchemaType; 105 FieldMetadata::kProtoFieldType != ProtoSchemaType::kMessage && 116 FieldMetadata::kProtoFieldType != ProtoSchemaType::kMessage && 129 FieldMetadata::kProtoFieldType == ProtoSchemaType::kMessage && 144 FieldMetadata::kProtoFieldType == ProtoSchemaType::kMessage &&
|