Linux Perf
parse-no-sample-id-all.c File Reference
#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"
Include dependency graph for parse-no-sample-id-all.c:

Go to the source code of this file.

Classes

struct  test_attr_event
 

Functions

static int process_event (struct perf_evlist **pevlist, union perf_event *event)
 
static int process_events (union perf_event **events, size_t count)
 
int test__parse_no_sample_id_all (struct test *test __maybe_unused, int subtest __maybe_unused)
 

Function Documentation

◆ process_event()

static int process_event ( struct perf_evlist **  pevlist,
union perf_event event 
)
static

Definition at line 14 of file parse-no-sample-id-all.c.

Here is the call graph for this function:

◆ process_events()

static int process_events ( union perf_event **  events,
size_t  count 
)
static

Definition at line 40 of file parse-no-sample-id-all.c.

Here is the call graph for this function:

◆ 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.

Here is the call graph for this function: