Lines Matching refs:ff
2170 struct feat_fd ff; in perf_event__synthesize_tracing_data() local
2204 ff = (struct feat_fd){ .fd = fd }; in perf_event__synthesize_tracing_data()
2205 if (write_padded(&ff, NULL, 0, padding)) in perf_event__synthesize_tracing_data()
2278 struct feat_fd ff; in perf_event__synthesize_features() local
2287 memset(&ff, 0, sizeof(ff)); in perf_event__synthesize_features()
2289 ff.buf = malloc(sz); in perf_event__synthesize_features()
2290 if (!ff.buf) in perf_event__synthesize_features()
2293 ff.size = sz - sz_hdr; in perf_event__synthesize_features()
2294 ff.ph = &session->header; in perf_event__synthesize_features()
2302 ff.offset = sizeof(*fe); in perf_event__synthesize_features()
2304 ret = feat_ops[feat].write(&ff, evlist); in perf_event__synthesize_features()
2305 if (ret || ff.offset <= (ssize_t)sizeof(*fe)) { in perf_event__synthesize_features()
2310 fe = ff.buf; in perf_event__synthesize_features()
2315 fe->header.size = ff.offset; in perf_event__synthesize_features()
2317 ret = process(tool, ff.buf, NULL, NULL); in perf_event__synthesize_features()
2319 free(ff.buf); in perf_event__synthesize_features()
2325 fe = ff.buf; in perf_event__synthesize_features()
2330 ret = process(tool, ff.buf, NULL, NULL); in perf_event__synthesize_features()
2332 free(ff.buf); in perf_event__synthesize_features()