Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
kprobes-test.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/kprobes.h>
#include <asm/opcodes.h>
#include "kprobes.h"
#include "kprobes-test.h"

Go to the source code of this file.

Data Structures

struct  benchmarks
 
struct  table_test_args
 
struct  coverage_entry
 
struct  coverage_table
 
struct  test_probe
 

Macros

#define BENCHMARKING   1
 
#define FUNC_ARG1   0x12345678
 
#define FUNC_ARG2   0xabcdef
 
#define wide
 
#define MAX_COVERAGE_ENTRIES   256
 
#define COVERAGE_ANY_REG   (1<<0)
 
#define COVERAGE_SP   (1<<1)
 
#define COVERAGE_PC   (1<<2)
 
#define COVERAGE_PCWB   (1<<3)
 
#define TEST_CASE_PASSED   -1
 
#define TEST_CASE_FAILED   -2
 
#define PSR_IGNORE_BITS   (PSR_A_BIT | PSR_F_BIT)
 

Functions

long arm_func (long r0, long r1)
 
unsigned coverage_start_registers (const struct decode_header *h)
 
void __naked __kprobes_test_case_start (void)
 
void __naked __kprobes_test_case_end_32 (void)
 
 late_initcall (run_all_tests)
 

Variables

bool coverage_fail
 
struct coverage_table coverage
 
int kprobe_test_flags
 
int kprobe_test_cc_position
 

Macro Definition Documentation

#define BENCHMARKING   1

Definition at line 211 of file kprobes-test.c.

#define COVERAGE_ANY_REG   (1<<0)

Definition at line 745 of file kprobes-test.c.

#define COVERAGE_PC   (1<<2)

Definition at line 747 of file kprobes-test.c.

#define COVERAGE_PCWB   (1<<3)

Definition at line 748 of file kprobes-test.c.

#define COVERAGE_SP   (1<<1)

Definition at line 746 of file kprobes-test.c.

#define FUNC_ARG1   0x12345678

Definition at line 225 of file kprobes-test.c.

#define FUNC_ARG2   0xabcdef

Definition at line 226 of file kprobes-test.c.

#define MAX_COVERAGE_ENTRIES   256

Definition at line 728 of file kprobes-test.c.

#define PSR_IGNORE_BITS   (PSR_A_BIT | PSR_F_BIT)

Definition at line 1051 of file kprobes-test.c.

#define TEST_CASE_FAILED   -2

Definition at line 1038 of file kprobes-test.c.

#define TEST_CASE_PASSED   -1

Definition at line 1037 of file kprobes-test.c.

#define wide

Definition at line 489 of file kprobes-test.c.

Function Documentation

void __naked __kprobes_test_case_end_32 ( void  )

Definition at line 971 of file kprobes-test.c.

void __naked __kprobes_test_case_start ( void  )

Definition at line 957 of file kprobes-test.c.

long arm_func ( long  r0,
long  r1 
)
unsigned coverage_start_registers ( const struct decode_header h)

Definition at line 763 of file kprobes-test.c.

late_initcall ( run_all_tests  )

Variable Documentation

Definition at line 743 of file kprobes-test.c.

bool coverage_fail

Definition at line 726 of file kprobes-test.c.

int kprobe_test_cc_position

Definition at line 1016 of file kprobes-test.c.

int kprobe_test_flags

Definition at line 1015 of file kprobes-test.c.