Debian Codegraph @

tapset/bpf/time.stp

raw
1 // time tapset
2 // Copyright (C) 2016 Red Hat Inc.
3 //
4 // This file is part of systemtap, and is free software. You can
5 // redistribute it and/or modify it under the terms of the GNU General
6 // Public License (GPL); either version 2, or (at your option) any
7 // later version.
8
9 /**
10 * sfunction ktime_get_ns
11 *
12 * Description: This function returns the system ktime.
13 */
14 function ktime_get_ns:long ()
15 %{ /* bpf */ /* pure */ /* unprivileged */
16 0x85, 0, 0, 0, 5; /* call BPF_FUNC_ktime_get_ns */
17 0xbf, $$, 0, 0, 0 /* movx $$, r0 */
18 %}