Skip to content

Helper function bpf_jiffies64

v5.6

Definition

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

Retrieve the current jiffies count as a 64-bit value.

Returns

A 64-bit value representing the number of jiffies since last system boot.

static __u64 (* const bpf_jiffies64)(void) = (void *) 118;

Usage

Returns a 64-bit value representing the number of jiffies since last system boot.

Program types

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

Example

 __u64 start = bpf_jiffies64();
/* some tasks */
__u64 end = bpf_jiffies64();
__u64 elapsed_jiffies = end - start;