Lines Matching refs:name
87 bool FtraceParser::SetupEvent(const std::string& type, const std::string& name)
89 if (!SubEventParser<FtraceEvent>::GetInstance().IsSupport(name)) {
96 format.eventName = name;
97 std::string desc = FtraceFsOps::GetInstance().GetEventDataFormat(type, name);
100 type.c_str(), name.c_str());
102 false, "setup %s/%s failed!", type.c_str(), name.c_str());
104 false, "setup pbzero %s/%s failed!", type.c_str(), name.c_str());
116 if (field.name == "timestamp") {
118 } else if (field.name == "commit") {
121 } else if (field.name == "overwrite") {
163 std::string name;
164 if (typeName.size() > 0) { // split type and name
169 name = rightHalf;
175 name = rightHalf.substr(0, postT1);
178 return name;
181 static std::string EraseNameFromTypeName(const std::string& typeName, const std::string& name)
184 if (name.size() > 0) { // erase name part from typeName
186 auto pos = type.find(name);
187 type.replace(pos, name.size(), "");
193 static void ParseCommonFiledIndex(CommonFiledIndex& commonIndex, const std::string& name, int index)
195 if (name == "common_type") {
197 } else if (name == "common_flags") {
199 } else if (name == "common_preempt_count") {
201 } else if (name == "common_pid") {
231 std::string name = SplitNameFromTypeName(typeName);
232 std::string type = EraseNameFromTypeName(typeName, name); // for field type
233 fieldInfo.name = name;
242 if (StringUtils::StartsWith(name, "common_")) {
243 ParseCommonFiledIndex(format.commonIndex, name, static_cast<int>(format.commonFields.size()));
335 // for flex array with __data_loc mark, likes: __data_loc char[] name; __data_loc __u8[] buf;
424 std::string name = line.substr(0, pos);
425 if (name == "entries") {
428 } else if (name == "overrun") {
431 } else if (name == "commit overrun") {
434 } else if (name == "bytes") {
437 } else if (name == "oldest event ts") {
440 } else if (name == "now ts") {
443 } else if (name == "dropped events") {
446 } else if (name == "read events") {