Skip to content

Latest commit

 

History

History
52 lines (36 loc) · 1.85 KB

bpf_ktime_get_coarse_ns.md

File metadata and controls

52 lines (36 loc) · 1.85 KB
title description
Helper Function 'bpf_ktime_get_coarse_ns'
This page documents the 'bpf_ktime_get_coarse_ns' eBPF helper function, including its defintion, usage, program types that can use it, and examples.

Helper function bpf_ktime_get_coarse_ns

:octicons-tag-24: v5.11

Definition

Copyright (c) 2015 The Libbpf Authors. All rights reserved.

Return a coarse-grained version of the time elapsed since system boot, in nanoseconds. Does not include time the system was suspended.

See: clock_gettime(CLOCK_MONOTONIC_COARSE)

Returns

Current ktime.

#!c static __u64 (* const bpf_ktime_get_coarse_ns)(void) = (void *) 160;

Usage

!!! example "Docs could be improved" This part of the docs is incomplete, contributions are very welcome

Program types

This helper call can be used in the following program types:

Example

!!! example "Docs could be improved" This part of the docs is incomplete, contributions are very welcome