blob: e71bb38e8ab79a2f00ac419e36d599ada22018d9 [file] [log] [blame]
// Copyright 2016 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SYSROOT_ZIRCON_SYSCALLS_PROFILE_H_
#define SYSROOT_ZIRCON_SYSCALLS_PROFILE_H_
#include <zircon/types.h>
__BEGIN_CDECLS
// ask clang format not to mess up the indentation:
// clang-format off
#define ZX_PROFILE_INFO_SCHEDULER 1
typedef struct zx_profile_scheduler {
int32_t priority;
uint32_t boost;
uint32_t deboost;
uint32_t quantum;
} zx_profile_scheduler_t;
#define ZX_PRIORITY_LOWEST 0
#define ZX_PRIORITY_LOW 8
#define ZX_PRIORITY_DEFAULT 16
#define ZX_PRIORITY_HIGH 24
#define ZX_PRIORITY_HIGHEST 31
typedef struct zx_profile_info {
uint32_t type; // one of ZX_PROFILE_INFO_
union {
zx_profile_scheduler_t scheduler;
};
} zx_profile_info_t;
__END_CDECLS
#endif // SYSROOT_ZIRCON_SYSCALLS_PROFILE_H_