Linux Perf
tsc.c File Reference
#include <linux/compiler.h>
#include <linux/types.h>
#include "tsc.h"
Include dependency graph for tsc.c:

Go to the source code of this file.

Functions

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 __weak rdtsc (void)
 

Function Documentation

◆ 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 __weak rdtsc ( void  )

Definition at line 28 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.