Home
last modified time | relevance | path

Searched refs:InferProtoType (Results 1 – 4 of 4) sorted by relevance

/external/perfetto/src/tools/ftrace_proto_gen/
Dftrace_proto_gen_unittest.cc23 TEST(FtraceEventParserTest, InferProtoType) { in TEST() argument
25 EXPECT_EQ(InferProtoType(Field{"char foo[16]", 0, 16, false}).ToString(), in TEST()
27 EXPECT_EQ(InferProtoType(Field{"char bar_42[64]", 0, 64, false}).ToString(), in TEST()
30 InferProtoType(Field{"__data_loc char[] foo", 0, 4, false}).ToString(), in TEST()
32 EXPECT_EQ(InferProtoType(Field{"char[] foo", 0, 8, false}).ToString(), in TEST()
34 EXPECT_EQ(InferProtoType(Field{"char * foo", 0, 8, false}).ToString(), in TEST()
37 EXPECT_EQ(InferProtoType(Field{"int foo", 0, 4, true}).ToString(), "int32"); in TEST()
38 EXPECT_EQ(InferProtoType(Field{"s32 signal", 50, 4, true}).ToString(), in TEST()
41 EXPECT_EQ(InferProtoType(Field{"unsigned int foo", 0, 4, false}).ToString(), in TEST()
43 EXPECT_EQ(InferProtoType(Field{"u32 control_freq", 44, 4, false}).ToString(), in TEST()
[all …]
Dproto_gen_utils.h97 ProtoType InferProtoType(const FtraceEvent::Field& field);
Dftrace_proto_gen.cc97 ProtoType type = InferProtoType(field); in ToProtoFields()
Dproto_gen_utils.cc196 ProtoType InferProtoType(const FtraceEvent::Field& field) { in InferProtoType() function