#include <errno.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <inttypes.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <sys/param.h>
#include "parse-events.h"
#include "evlist.h"
#include "evsel.h"
#include "thread_map.h"
#include "cpumap.h"
#include "machine.h"
#include "event.h"
#include "thread.h"
#include "tests.h"
#include "sane_ctype.h"
Go to the source code of this file.
|
static unsigned int | hex (char c) |
|
static size_t | read_objdump_chunk (const char **line, unsigned char **buf, size_t *buf_len) |
|
static size_t | read_objdump_line (const char *line, unsigned char *buf, size_t buf_len) |
|
static int | read_objdump_output (FILE *f, void *buf, size_t *len, u64 start_addr) |
|
static int | read_via_objdump (const char *filename, u64 addr, void *buf, size_t len) |
|
static void | dump_buf (unsigned char *buf, size_t len) |
|
static int | read_object_code (u64 addr, size_t len, u8 cpumode, struct thread *thread, struct state *state) |
|
static int | process_sample_event (struct machine *machine, struct perf_evlist *evlist, union perf_event *event, struct state *state) |
|
static int | process_event (struct machine *machine, struct perf_evlist *evlist, union perf_event *event, struct state *state) |
|
static int | process_events (struct machine *machine, struct perf_evlist *evlist, struct state *state) |
|
static int | comp (const void *a, const void *b) |
|
static void | do_sort_something (void) |
|
static void | sort_something (void) |
|
static void | syscall_something (void) |
|
static void | fs_something (void) |
|
static const char * | do_determine_event (bool excl_kernel) |
|
static void | do_something (void) |
|
static int | do_test_code_reading (bool try_kcore) |
|
int | test__code_reading (struct test *test __maybe_unused, int subtest __maybe_unused) |
|
◆ BUFSZ
◆ READLEN
◆ anonymous enum
Enumerator |
---|
TEST_CODE_READING_OK | |
TEST_CODE_READING_NO_VMLINUX | |
TEST_CODE_READING_NO_KCORE | |
TEST_CODE_READING_NO_ACCESS | |
TEST_CODE_READING_NO_KERNEL_OBJ | |
Definition at line 527 of file code-reading.c.
◆ comp()
static int comp |
( |
const void * |
a, |
|
|
const void * |
b |
|
) |
| |
|
static |
◆ do_determine_event()
static const char* do_determine_event |
( |
bool |
excl_kernel | ) |
|
|
static |
◆ do_something()
static void do_something |
( |
void |
| ) |
|
|
static |
◆ do_sort_something()
static void do_sort_something |
( |
void |
| ) |
|
|
static |
◆ do_test_code_reading()
static int do_test_code_reading |
( |
bool |
try_kcore | ) |
|
|
static |
◆ dump_buf()
static void dump_buf |
( |
unsigned char * |
buf, |
|
|
size_t |
len |
|
) |
| |
|
static |
◆ fs_something()
static void fs_something |
( |
void |
| ) |
|
|
static |
◆ hex()
static unsigned int hex |
( |
char |
c | ) |
|
|
static |
◆ process_event()
◆ process_events()
◆ process_sample_event()
◆ read_objdump_chunk()
static size_t read_objdump_chunk |
( |
const char ** |
line, |
|
|
unsigned char ** |
buf, |
|
|
size_t * |
buf_len |
|
) |
| |
|
static |
◆ read_objdump_line()
static size_t read_objdump_line |
( |
const char * |
line, |
|
|
unsigned char * |
buf, |
|
|
size_t |
buf_len |
|
) |
| |
|
static |
◆ read_objdump_output()
static int read_objdump_output |
( |
FILE * |
f, |
|
|
void * |
buf, |
|
|
size_t * |
len, |
|
|
u64 |
start_addr |
|
) |
| |
|
static |
◆ read_object_code()
static int read_object_code |
( |
u64 |
addr, |
|
|
size_t |
len, |
|
|
u8 |
cpumode, |
|
|
struct thread * |
thread, |
|
|
struct state * |
state |
|
) |
| |
|
static |
◆ read_via_objdump()
static int read_via_objdump |
( |
const char * |
filename, |
|
|
u64 |
addr, |
|
|
void * |
buf, |
|
|
size_t |
len |
|
) |
| |
|
static |
◆ sort_something()
static void sort_something |
( |
void |
| ) |
|
|
static |
◆ syscall_something()
static void syscall_something |
( |
void |
| ) |
|
|
static |
◆ test__code_reading()
int test__code_reading |
( |
struct test *test |
__maybe_unused, |
|
|
int subtest |
__maybe_unused |
|
) |
| |