Linux Perf
topology.c File Reference
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "tests.h"
#include "util.h"
#include "session.h"
#include "evlist.h"
#include "debug.h"
Include dependency graph for topology.c:

Go to the source code of this file.

Macros

#define TEMPL   "/tmp/perf-test-XXXXXX"
 
#define DATA_SIZE   10
 

Functions

static int get_temp (char *path)
 
static int session_write_header (char *path)
 
static int check_cpu_topology (char *path, struct cpu_map *map)
 
int test__session_topology (struct test *test __maybe_unused, int subtest __maybe_unused)
 

Macro Definition Documentation

◆ DATA_SIZE

#define DATA_SIZE   10

Definition at line 12 of file topology.c.

◆ TEMPL

#define TEMPL   "/tmp/perf-test-XXXXXX"

Definition at line 11 of file topology.c.

Function Documentation

◆ check_cpu_topology()

static int check_cpu_topology ( char *  path,
struct cpu_map map 
)
static

Definition at line 59 of file topology.c.

Here is the call graph for this function:

◆ get_temp()

static int get_temp ( char *  path)
static

Definition at line 14 of file topology.c.

◆ session_write_header()

static int session_write_header ( char *  path)
static

Definition at line 30 of file topology.c.

Here is the call graph for this function:

◆ test__session_topology()

int test__session_topology ( struct test *test  __maybe_unused,
int subtest  __maybe_unused 
)

Definition at line 115 of file topology.c.

Here is the call graph for this function: