Home
last modified time | relevance | path

Searched refs:GetNameFromTypeAndName (Results 1 – 5 of 5) sorted by relevance

/external/perfetto/src/ftrace_reader/
Dformat_parser_unittest.cc126 TEST(FtraceEventParserTest, GetNameFromTypeAndName) { in TEST() argument
127 EXPECT_EQ(GetNameFromTypeAndName("int foo"), "foo"); in TEST()
128 EXPECT_EQ(GetNameFromTypeAndName("int foo_bar"), "foo_bar"); in TEST()
129 EXPECT_EQ(GetNameFromTypeAndName("const char * foo"), "foo"); in TEST()
130 EXPECT_EQ(GetNameFromTypeAndName("const char foo[64]"), "foo"); in TEST()
131 EXPECT_EQ(GetNameFromTypeAndName("char[] foo[16]"), "foo"); in TEST()
132 EXPECT_EQ(GetNameFromTypeAndName("u8 foo[(int)sizeof(struct blah)]"), "foo"); in TEST()
134 EXPECT_EQ(GetNameFromTypeAndName(""), ""); in TEST()
135 EXPECT_EQ(GetNameFromTypeAndName("]"), ""); in TEST()
136 EXPECT_EQ(GetNameFromTypeAndName("["), ""); in TEST()
[all …]
Dformat_parser.cc60 std::string GetNameFromTypeAndName(const std::string& type_and_name) { in GetNameFromTypeAndName() function
124 if (IsCommonFieldName(GetNameFromTypeAndName(type_and_name))) { in ParseFtraceEvent()
Dproto_translation_table.cc108 if (GetNameFromTypeAndName(ftrace_field.type_and_name) != in MergeFields()
/external/perfetto/include/perfetto/ftrace_reader/
Dformat_parser.h51 std::string GetNameFromTypeAndName(const std::string& type_and_name);
/external/perfetto/tools/ftrace_proto_gen/
Dftrace_proto_gen.cc158 std::string name = GetNameFromTypeAndName(field.type_and_name); in GenerateProto()