Lines Matching defs:sample
17 struct sample {
26 static struct sample fake_common_samples[] = {
39 static struct sample fake_samples[][5] = {
71 struct perf_sample sample = { .period = 1, .weight = 1, };
84 sample.cpumode = PERF_RECORD_MISC_USER;
85 sample.pid = fake_common_samples[k].pid;
86 sample.tid = fake_common_samples[k].pid;
87 sample.ip = fake_common_samples[k].ip;
89 if (machine__resolve(machine, &al, &sample) < 0)
93 NULL, NULL, NULL, &sample, true);
106 sample.pid = fake_samples[i][k].pid;
107 sample.tid = fake_samples[i][k].pid;
108 sample.ip = fake_samples[i][k].ip;
109 if (machine__resolve(machine, &al, &sample) < 0)
113 NULL, NULL, NULL, &sample, true);
147 static int find_sample(struct sample *samples, size_t nr_samples,
320 /* process sample events */