Lines Matching refs:sret
146 ssize_t sret; in perf_pmu__parse_scale() local
160 sret = read(fd, scale, sizeof(scale)-1); in perf_pmu__parse_scale()
161 if (sret < 0) in perf_pmu__parse_scale()
164 if (scale[sret - 1] == '\n') in perf_pmu__parse_scale()
165 scale[sret - 1] = '\0'; in perf_pmu__parse_scale()
167 scale[sret] = '\0'; in perf_pmu__parse_scale()
178 ssize_t sret; in perf_pmu__parse_unit() local
187 sret = read(fd, alias->unit, UNIT_MAX_LEN); in perf_pmu__parse_unit()
188 if (sret < 0) in perf_pmu__parse_unit()
193 if (alias->unit[sret - 1] == '\n') in perf_pmu__parse_unit()
194 alias->unit[sret - 1] = '\0'; in perf_pmu__parse_unit()
196 alias->unit[sret] = '\0'; in perf_pmu__parse_unit()