#include <linux/kernel.h>
#include <linux/types.h>
#include <stddef.h>
#include "tests.h"
#include "event.h"
#include "evlist.h"
#include "header.h"
#include "util.h"
#include "debug.h"
Go to the source code of this file.
◆ process_event()
◆ process_events()
static int process_events |
( |
union perf_event ** |
events, |
|
|
size_t |
count |
|
) |
| |
|
static |
◆ test__parse_no_sample_id_all()
int test__parse_no_sample_id_all |
( |
struct test *test |
__maybe_unused, |
|
|
int subtest |
__maybe_unused |
|
) |
| |
test__parse_no_sample_id_all - test parsing with no sample_id_all bit set.
This function tests parsing data produced on kernel's that do not support the sample_id_all bit. Without the sample_id_all bit, non-sample events (such as mmap events) do not have an id sample appended, and consequently logic designed to determine the id will not work. That case happens when there is more than one selected event, so this test processes three events: 2 attributes representing the selected events and one mmap event.
Return: %0 on success, %-1 if the test fails.
Definition at line 72 of file parse-no-sample-id-all.c.