Lines Matching refs:line
43 static bool extractStat(const char *line, const std::string &prefix, uint64_t *stat) { in extractStat() argument
44 char const *prefixStart = strstr(line, prefix.c_str()); in extractStat()
56 FILE *fp, char **line, size_t *len) { in parseState() argument
61 while ((numFieldsRead < numFields) && (getline(line, len, fp) != -1)) { in parseState()
64 if (config.entryCountSupported && extractStat(*line, config.entryCountPrefix, &stat)) { in parseState()
68 } else if (config.totalTimeSupported && extractStat(*line, config.totalTimePrefix, &stat)) { in parseState()
72 } else if (config.lastEntrySupported && extractStat(*line, config.lastEntryPrefix, &stat)) { in parseState()
90 static int32_t findNextIndex(const std::vector<T> &collection, FILE *fp, char **line, size_t *len, in findNextIndex() argument
97 while (getline(line, len, fp) != -1) { in findNextIndex()
99 if (pred(collection[i], *line)) { in findNextIndex()
111 FILE *fp, char **line, size_t *len) { in getStateData() argument
125 stateResidencyConfigs, fp, line, len, pred)) >= 0) { in getStateData()
128 if (parseState(&data, stateResidencyConfigs[nextState], fp, line, len)) { in getStateData()
154 char *line = nullptr; in getStateResidencies() local
166 mPowerEntityConfigs, fp.get(), &line, &len, pred)) >= 0) { in getStateResidencies()
170 &line, &len)) { in getStateResidencies()
178 free(line); in getStateResidencies()