Linux Perf
tsc.h File Reference
#include <linux/types.h>
#include "event.h"
Include dependency graph for tsc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  perf_tsc_conversion
 

Functions

int perf_read_tsc_conversion (const struct perf_event_mmap_page *pc, struct perf_tsc_conversion *tc)
 
u64 perf_time_to_tsc (u64 ns, struct perf_tsc_conversion *tc)
 
u64 tsc_to_perf_time (u64 cyc, struct perf_tsc_conversion *tc)
 
u64 rdtsc (void)
 
int perf_event__synth_time_conv (const struct perf_event_mmap_page *pc, struct perf_tool *tool, perf_event__handler_t process, struct machine *machine)
 

Function Documentation

◆ perf_event__synth_time_conv()

int perf_event__synth_time_conv ( const struct perf_event_mmap_page *  pc,
struct perf_tool tool,
perf_event__handler_t  process,
struct machine machine 
)

Definition at line 50 of file tsc.c.

Here is the call graph for this function:

◆ perf_read_tsc_conversion()

int perf_read_tsc_conversion ( const struct perf_event_mmap_page *  pc,
struct perf_tsc_conversion tc 
)

Definition at line 12 of file tsc.c.

◆ perf_time_to_tsc()

u64 perf_time_to_tsc ( u64  ns,
struct perf_tsc_conversion tc 
)

Definition at line 7 of file tsc.c.

◆ rdtsc()

u64 rdtsc ( void  )

Definition at line 41 of file tsc.c.

◆ tsc_to_perf_time()

u64 tsc_to_perf_time ( u64  cyc,
struct perf_tsc_conversion tc 
)

Definition at line 18 of file tsc.c.