blob: 49eeb28eaf3a208e8ba49693cf31c2b6efaabecc [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
2 * This file is auto-generated. Modifications will be lost.
3 *
4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5 * for more information.
6 */
Christopher Ferrisaf09c702020-06-01 20:29:29 -07007#ifndef _UAPI_LINUX_UM_TIMETRAVEL_H
8#define _UAPI_LINUX_UM_TIMETRAVEL_H
9#include <linux/types.h>
10struct um_timetravel_msg {
11 __u32 op;
12 __u32 seq;
13 __u64 time;
14};
Christopher Ferris63fcca42024-09-26 01:12:10 +000015#define UM_TIMETRAVEL_MAX_FDS 2
16enum um_timetravel_shared_mem_fds {
17 UM_TIMETRAVEL_SHARED_MEMFD,
18 UM_TIMETRAVEL_SHARED_LOGFD,
19 UM_TIMETRAVEL_SHARED_MAX_FDS,
20};
21enum um_timetravel_start_ack {
22 UM_TIMETRAVEL_START_ACK_ID = 0xffff,
23};
Christopher Ferrisaf09c702020-06-01 20:29:29 -070024enum um_timetravel_ops {
25 UM_TIMETRAVEL_ACK = 0,
26 UM_TIMETRAVEL_START = 1,
27 UM_TIMETRAVEL_REQUEST = 2,
28 UM_TIMETRAVEL_WAIT = 3,
29 UM_TIMETRAVEL_GET = 4,
30 UM_TIMETRAVEL_UPDATE = 5,
31 UM_TIMETRAVEL_RUN = 6,
32 UM_TIMETRAVEL_FREE_UNTIL = 7,
33 UM_TIMETRAVEL_GET_TOD = 8,
Christopher Ferris63fcca42024-09-26 01:12:10 +000034 UM_TIMETRAVEL_BROADCAST = 9,
35};
36#define UM_TIMETRAVEL_SCHEDSHM_VERSION 2
37enum um_timetravel_schedshm_cap {
38 UM_TIMETRAVEL_SCHEDSHM_CAP_TIME_SHARE = 0x1,
39};
40enum um_timetravel_schedshm_flags {
41 UM_TIMETRAVEL_SCHEDSHM_FLAGS_REQ_RUN = 0x1,
42};
43union um_timetravel_schedshm_client {
44 struct {
45 __u32 capa;
46 __u32 flags;
47 __u64 req_time;
48 __u64 name;
49 };
50 char reserve[128];
51};
52struct um_timetravel_schedshm {
53 union {
54 struct {
55 __u32 version;
56 __u32 len;
57 __u64 free_until;
58 __u64 current_time;
59 __u16 running_id;
60 __u16 max_clients;
61 };
62 char hdr[4096];
63 };
64 union um_timetravel_schedshm_client clients[];
Christopher Ferrisaf09c702020-06-01 20:29:29 -070065};
66#endif