FreeBSD kernel kern code
subr_coverage.c File Reference
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/coverage.h>
#include <machine/atomic.h>
Include dependency graph for subr_coverage.c:

Go to the source code of this file.

Functions

 __FBSDID ("$FreeBSD$")
 
void __sanitizer_cov_trace_pc (void)
 
void __sanitizer_cov_trace_cmp1 (uint8_t, uint8_t)
 
void __sanitizer_cov_trace_cmp2 (uint16_t, uint16_t)
 
void __sanitizer_cov_trace_cmp4 (uint32_t, uint32_t)
 
void __sanitizer_cov_trace_cmp8 (uint64_t, uint64_t)
 
void __sanitizer_cov_trace_const_cmp1 (uint8_t, uint8_t)
 
void __sanitizer_cov_trace_const_cmp2 (uint16_t, uint16_t)
 
void __sanitizer_cov_trace_const_cmp4 (uint32_t, uint32_t)
 
void __sanitizer_cov_trace_const_cmp8 (uint64_t, uint64_t)
 
void __sanitizer_cov_trace_switch (uint64_t, uint64_t *)
 
void cov_register_pc (cov_trace_pc_t trace_pc)
 
void cov_unregister_pc (void)
 
void cov_register_cmp (cov_trace_cmp_t trace_cmp)
 
void cov_unregister_cmp (void)
 

Variables

static cov_trace_pc_t cov_trace_pc
 
static cov_trace_cmp_t cov_trace_cmp
 

Function Documentation

◆ __FBSDID()

__FBSDID ( "$FreeBSD$"  )

◆ __sanitizer_cov_trace_cmp1()

void __sanitizer_cov_trace_cmp1 ( uint8_t  arg1,
uint8_t  arg2 
)

Definition at line 113 of file subr_coverage.c.

References cov_trace_cmp, and trace_cmp().

Here is the call graph for this function:

◆ __sanitizer_cov_trace_cmp2()

void __sanitizer_cov_trace_cmp2 ( uint16_t  arg1,
uint16_t  arg2 
)

Definition at line 124 of file subr_coverage.c.

References cov_trace_cmp, and trace_cmp().

Here is the call graph for this function:

◆ __sanitizer_cov_trace_cmp4()

void __sanitizer_cov_trace_cmp4 ( uint32_t  arg1,
uint32_t  arg2 
)

Definition at line 135 of file subr_coverage.c.

References cov_trace_cmp, and trace_cmp().

Here is the call graph for this function:

◆ __sanitizer_cov_trace_cmp8()

void __sanitizer_cov_trace_cmp8 ( uint64_t  arg1,
uint64_t  arg2 
)

Definition at line 146 of file subr_coverage.c.

References cov_trace_cmp, and trace_cmp().

Here is the call graph for this function:

◆ __sanitizer_cov_trace_const_cmp1()

void __sanitizer_cov_trace_const_cmp1 ( uint8_t  arg1,
uint8_t  arg2 
)

Definition at line 157 of file subr_coverage.c.

References cov_trace_cmp, and trace_cmp().

Here is the call graph for this function:

◆ __sanitizer_cov_trace_const_cmp2()

void __sanitizer_cov_trace_const_cmp2 ( uint16_t  arg1,
uint16_t  arg2 
)

Definition at line 168 of file subr_coverage.c.

References cov_trace_cmp, and trace_cmp().

Here is the call graph for this function:

◆ __sanitizer_cov_trace_const_cmp4()

void __sanitizer_cov_trace_const_cmp4 ( uint32_t  arg1,
uint32_t  arg2 
)

Definition at line 179 of file subr_coverage.c.

References cov_trace_cmp, and trace_cmp().

Here is the call graph for this function:

◆ __sanitizer_cov_trace_const_cmp8()

void __sanitizer_cov_trace_const_cmp8 ( uint64_t  arg1,
uint64_t  arg2 
)

Definition at line 190 of file subr_coverage.c.

References cov_trace_cmp, and trace_cmp().

Here is the call graph for this function:

◆ __sanitizer_cov_trace_pc()

void __sanitizer_cov_trace_pc ( void  )

Definition at line 98 of file subr_coverage.c.

References cov_trace_pc, and trace_pc().

Here is the call graph for this function:

◆ __sanitizer_cov_trace_switch()

void __sanitizer_cov_trace_switch ( uint64_t  val,
uint64_t *  cases 
)

Definition at line 207 of file subr_coverage.c.

References count, cov_trace_cmp, trace_cmp(), and type.

Here is the call graph for this function:

◆ cov_register_cmp()

void cov_register_cmp ( cov_trace_cmp_t  trace_cmp)

Definition at line 79 of file subr_coverage.c.

References cov_trace_cmp, and trace_cmp().

Referenced by kcov_ioctl().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cov_register_pc()

void cov_register_pc ( cov_trace_pc_t  trace_pc)

Definition at line 65 of file subr_coverage.c.

References cov_trace_pc, and trace_pc().

Referenced by kcov_ioctl().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cov_unregister_cmp()

void cov_unregister_cmp ( void  )

Definition at line 86 of file subr_coverage.c.

References cov_trace_cmp.

Referenced by kcov_ioctl(), and kcov_thread_dtor().

Here is the caller graph for this function:

◆ cov_unregister_pc()

void cov_unregister_pc ( void  )

Definition at line 72 of file subr_coverage.c.

References cov_trace_pc.

Referenced by kcov_ioctl(), and kcov_thread_dtor().

Here is the caller graph for this function:

Variable Documentation

◆ cov_trace_cmp

◆ cov_trace_pc

cov_trace_pc_t cov_trace_pc
static

Definition at line 61 of file subr_coverage.c.

Referenced by __sanitizer_cov_trace_pc(), cov_register_pc(), and cov_unregister_pc().