Lines Matching defs:sample
226 struct perf_sample sample = {
289 sample.read.group.nr = 4;
290 sample.read.group.values = values;
292 sample.read.one.value = 0x08789faeb786aa87ULL;
293 sample.read.one.id = 99;
294 sample.read.one.lost = 1;
297 sz = perf_event__sample_event_size(&sample, sample_type, read_format);
311 &sample);
338 if (!samples_same(&sample, &sample_out, sample_type, read_format, evsel.needs_swap)) {
354 if (!samples_same(&sample, &sample_out_endian, sample_type, read_format, evsel.needs_swap)) {
370 * test__sample_parsing - test sample parsing.
372 * This function implements a test that synthesizes a sample event, parses it
373 * and then checks that the parsed sample matches the original sample. The test
374 * checks sample format bits separately and together. If the test passes %0 is
386 * Fail the test if it has not been updated when new sample format bits
391 pr_debug("sample format has changed, some new PERF_SAMPLE_ bit was introduced - test needs updating\n");
395 /* Test each sample format bit separately */
421 * Test all sample format bits together