/external/perfetto/src/trace_processor/ |
D | ftrace_descriptors.cc | 20 {"ip", ProtoSchemaType::kUint64}, 21 {"buf", ProtoSchemaType::kString}, 29 {"prev_comm", ProtoSchemaType::kString}, 30 {"prev_pid", ProtoSchemaType::kInt32}, 31 {"prev_prio", ProtoSchemaType::kInt32}, 32 {"prev_state", ProtoSchemaType::kInt64}, 33 {"next_comm", ProtoSchemaType::kString}, 34 {"next_pid", ProtoSchemaType::kInt32}, 35 {"next_prio", ProtoSchemaType::kInt32}, 49 {"state", ProtoSchemaType::kUint32}, [all …]
|
D | ftrace_descriptors.h | 26 using protozero::proto_utils::ProtoSchemaType; 40 ProtoSchemaType type;
|
D | proto_trace_parser.cc | 1012 ProtoSchemaType type = m->fields[fld.id()].type; in ParseTypedFtraceToRaw() 1015 case ProtoSchemaType::kUint32: in ParseTypedFtraceToRaw() 1016 case ProtoSchemaType::kInt32: in ParseTypedFtraceToRaw() 1017 case ProtoSchemaType::kUint64: in ParseTypedFtraceToRaw() 1018 case ProtoSchemaType::kInt64: in ParseTypedFtraceToRaw() 1019 case ProtoSchemaType::kFixed64: in ParseTypedFtraceToRaw() 1020 case ProtoSchemaType::kFixed32: in ParseTypedFtraceToRaw() 1021 case ProtoSchemaType::kSfixed32: in ParseTypedFtraceToRaw() 1022 case ProtoSchemaType::kSfixed64: in ParseTypedFtraceToRaw() 1023 case ProtoSchemaType::kSint32: in ParseTypedFtraceToRaw() [all …]
|
/external/perfetto/src/traced/probes/ftrace/ |
D | event_info.cc | 10 using protozero::proto_utils::ProtoSchemaType; 21 event->fields.push_back(MakeField("debug_id", 1, ProtoSchemaType::kInt32)); in GetStaticEventInfo() 23 MakeField("target_node", 2, ProtoSchemaType::kInt32)); in GetStaticEventInfo() 24 event->fields.push_back(MakeField("to_proc", 3, ProtoSchemaType::kInt32)); in GetStaticEventInfo() 25 event->fields.push_back(MakeField("to_thread", 4, ProtoSchemaType::kInt32)); in GetStaticEventInfo() 26 event->fields.push_back(MakeField("reply", 5, ProtoSchemaType::kInt32)); in GetStaticEventInfo() 27 event->fields.push_back(MakeField("code", 6, ProtoSchemaType::kUint32)); in GetStaticEventInfo() 28 event->fields.push_back(MakeField("flags", 7, ProtoSchemaType::kUint32)); in GetStaticEventInfo() 37 event->fields.push_back(MakeField("debug_id", 1, ProtoSchemaType::kInt32)); in GetStaticEventInfo() 46 event->fields.push_back(MakeField("proc", 1, ProtoSchemaType::kInt32)); in GetStaticEventInfo() [all …]
|
D | event_info_constants.cc | 20 using protozero::proto_utils::ProtoSchemaType; 22 Field MakeField(const char* name, uint32_t id, ProtoSchemaType type) { in MakeField() 33 fields.push_back(MakeField("common_pid", 2, ProtoSchemaType::kInt32)); in GetStaticCommonFieldsInfo() 39 ProtoSchemaType proto, in SetTranslationStrategy() 41 if (ftrace == kFtraceCommonPid32 && proto == ProtoSchemaType::kInt32) { in SetTranslationStrategy() 43 } else if (ftrace == kFtraceCommonPid32 && proto == ProtoSchemaType::kInt64) { in SetTranslationStrategy() 45 } else if (ftrace == kFtraceInode32 && proto == ProtoSchemaType::kUint64) { in SetTranslationStrategy() 47 } else if (ftrace == kFtraceInode64 && proto == ProtoSchemaType::kUint64) { in SetTranslationStrategy() 49 } else if (ftrace == kFtracePid32 && proto == ProtoSchemaType::kInt32) { in SetTranslationStrategy() 51 } 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 | 40 using protozero::proto_utils::ProtoSchemaType; 100 EXPECT_EQ(event->fields.at(1).proto_field_type, ProtoSchemaType::kString); in TEST_P() 192 field->proto_field_type = ProtoSchemaType::kString; in TEST_P() 201 field->proto_field_type = ProtoSchemaType::kString; in TEST_P() 210 field->proto_field_type = ProtoSchemaType::kString; in TEST_P() 219 field->proto_field_type = ProtoSchemaType::kUint64; in TEST_P() 419 EXPECT_EQ(str_field.proto_field_type, ProtoSchemaType::kString); in TEST() 429 EXPECT_EQ(bool_field.proto_field_type, ProtoSchemaType::kUint64); in TEST() 439 EXPECT_EQ(int_field.proto_field_type, ProtoSchemaType::kInt64); in TEST() 449 EXPECT_EQ(uint_field.proto_field_type, ProtoSchemaType::kUint64); in TEST()
|
D | event_info_constants.h | 143 protozero::proto_utils::ProtoSchemaType proto_field_type; 173 protozero::proto_utils::ProtoSchemaType proto, 178 protozero::proto_utils::ProtoSchemaType type);
|
D | proto_translation_table.cc | 37 using protozero::proto_utils::ProtoSchemaType; 213 ProtoSchemaType* proto_type, in SetProtoType() 220 *proto_type = ProtoSchemaType::kString; in SetProtoType() 229 *proto_type = ProtoSchemaType::kInt64; in SetProtoType() 241 *proto_type = ProtoSchemaType::kUint64; in SetProtoType()
|
D | cpu_reader_unittest.cc | 53 using protozero::proto_utils::ProtoSchemaType; 707 field->proto_field_type = ProtoSchemaType::kUint32; in TEST_F() 719 field->proto_field_type = ProtoSchemaType::kInt32; in TEST_F() 741 field->proto_field_type = ProtoSchemaType::kUint32; in TEST_F() 752 field->proto_field_type = ProtoSchemaType::kInt32; in TEST_F() 763 field->proto_field_type = ProtoSchemaType::kUint64; in TEST_F() 774 field->proto_field_type = ProtoSchemaType::kUint64; in TEST_F() 785 field->proto_field_type = ProtoSchemaType::kUint64; in TEST_F() 796 field->proto_field_type = ProtoSchemaType::kUint64; in TEST_F() 807 field->proto_field_type = ProtoSchemaType::kString; in TEST_F() [all …]
|
/external/perfetto/include/perfetto/protozero/ |
D | proto_utils.h | 43 enum class ProtoSchemaType { enum 65 inline const char* ProtoSchemaToString(ProtoSchemaType v) { in ProtoSchemaToString() 67 case ProtoSchemaType::kUnknown: in ProtoSchemaToString() 69 case ProtoSchemaType::kDouble: in ProtoSchemaToString() 71 case ProtoSchemaType::kFloat: in ProtoSchemaToString() 73 case ProtoSchemaType::kInt64: in ProtoSchemaToString() 75 case ProtoSchemaType::kUint64: in ProtoSchemaToString() 77 case ProtoSchemaType::kInt32: in ProtoSchemaToString() 79 case ProtoSchemaType::kFixed64: in ProtoSchemaToString() 81 case ProtoSchemaType::kFixed32: in ProtoSchemaToString() [all …]
|