Skip to content

Commit

Permalink
regenerate bindgens
Browse files Browse the repository at this point in the history
  • Loading branch information
likewhatevs committed Dec 26, 2024
1 parent 34aec4d commit 2d2d35e
Showing 1 changed file with 73 additions and 48 deletions.
121 changes: 73 additions & 48 deletions scheds/rust/scx_layered/src/bpf_intf.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* automatically generated by rust-bindgen 0.70.1 */

#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
Expand Down Expand Up @@ -58,7 +57,9 @@ pub type layer_kind = ::std::os::raw::c_uint;
pub const layer_usage_LAYER_USAGE_OWNED: layer_usage = 0;
pub const layer_usage_LAYER_USAGE_OPEN: layer_usage = 1;
pub const layer_usage_LAYER_USAGE_SUM_UPTO: layer_usage = 1;
pub const layer_usage_NR_LAYER_USAGES: layer_usage = 2;
pub const layer_usage_LAYER_USAGE_PROTECTED: layer_usage = 2;
pub const layer_usage_LAYER_USAGE_PROTECTED_PREEMPT: layer_usage = 3;
pub const layer_usage_NR_LAYER_USAGES: layer_usage = 4;
pub type layer_usage = ::std::os::raw::c_uint;
pub const global_stat_id_GSTAT_EXCL_IDLE: global_stat_id = 0;
pub const global_stat_id_GSTAT_EXCL_WAKEUP: global_stat_id = 1;
Expand Down Expand Up @@ -140,17 +141,19 @@ pub struct cpu_ctx {
pub try_preempt_first: bool,
pub is_big: bool,
pub protect_owned: bool,
pub protect_owned_preempt: bool,
pub running_owned: bool,
pub running_fallback: bool,
pub running_at: u64_,
pub layer_usages: [[u64_; 2usize]; 16usize],
pub layer_usages: [[u64_; 4usize]; 16usize],
pub gstats: [u64_; 7usize],
pub lstats: [[u64_; 30usize]; 16usize],
pub ran_current_for: u64_,
pub usage: u64_,
pub usage_at_idle: u64_,
pub hi_fb_dsq_id: u64_,
pub lo_fb_dsq_id: u64_,
pub in_open_layers: bool,
pub layer_id: u32_,
pub task_layer_id: u32_,
pub llc_id: u32_,
Expand All @@ -159,13 +162,17 @@ pub struct cpu_ctx {
pub lo_fb_seq: u64_,
pub lo_fb_seq_at: u64_,
pub lo_fb_usage_base: u64_,
pub open_preempt_layer_order: [u32_; 16usize],
pub open_layer_order: [u32_; 16usize],
pub ogp_layer_order: [u32_; 16usize],
pub ogn_layer_order: [u32_; 16usize],
pub op_layer_order: [u32_; 16usize],
pub on_layer_order: [u32_; 16usize],
pub gp_layer_order: [u32_; 16usize],
pub gn_layer_order: [u32_; 16usize],
pub prox_map: cpu_prox_map,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of cpu_ctx"][::std::mem::size_of::<cpu_ctx>() - 5432usize];
["Size of cpu_ctx"][::std::mem::size_of::<cpu_ctx>() - 5944usize];
["Alignment of cpu_ctx"][::std::mem::align_of::<cpu_ctx>() - 8usize];
["Offset of field: cpu_ctx::cpu"][::std::mem::offset_of!(cpu_ctx, cpu) - 0usize];
["Offset of field: cpu_ctx::current_preempt"]
Expand All @@ -181,40 +188,52 @@ const _: () = {
["Offset of field: cpu_ctx::is_big"][::std::mem::offset_of!(cpu_ctx, is_big) - 10usize];
["Offset of field: cpu_ctx::protect_owned"]
[::std::mem::offset_of!(cpu_ctx, protect_owned) - 11usize];
["Offset of field: cpu_ctx::protect_owned_preempt"]
[::std::mem::offset_of!(cpu_ctx, protect_owned_preempt) - 12usize];
["Offset of field: cpu_ctx::running_owned"]
[::std::mem::offset_of!(cpu_ctx, running_owned) - 12usize];
[::std::mem::offset_of!(cpu_ctx, running_owned) - 13usize];
["Offset of field: cpu_ctx::running_fallback"]
[::std::mem::offset_of!(cpu_ctx, running_fallback) - 13usize];
[::std::mem::offset_of!(cpu_ctx, running_fallback) - 14usize];
["Offset of field: cpu_ctx::running_at"][::std::mem::offset_of!(cpu_ctx, running_at) - 16usize];
["Offset of field: cpu_ctx::layer_usages"]
[::std::mem::offset_of!(cpu_ctx, layer_usages) - 24usize];
["Offset of field: cpu_ctx::gstats"][::std::mem::offset_of!(cpu_ctx, gstats) - 280usize];
["Offset of field: cpu_ctx::lstats"][::std::mem::offset_of!(cpu_ctx, lstats) - 336usize];
["Offset of field: cpu_ctx::gstats"][::std::mem::offset_of!(cpu_ctx, gstats) - 536usize];
["Offset of field: cpu_ctx::lstats"][::std::mem::offset_of!(cpu_ctx, lstats) - 592usize];
["Offset of field: cpu_ctx::ran_current_for"]
[::std::mem::offset_of!(cpu_ctx, ran_current_for) - 4176usize];
["Offset of field: cpu_ctx::usage"][::std::mem::offset_of!(cpu_ctx, usage) - 4184usize];
[::std::mem::offset_of!(cpu_ctx, ran_current_for) - 4432usize];
["Offset of field: cpu_ctx::usage"][::std::mem::offset_of!(cpu_ctx, usage) - 4440usize];
["Offset of field: cpu_ctx::usage_at_idle"]
[::std::mem::offset_of!(cpu_ctx, usage_at_idle) - 4192usize];
[::std::mem::offset_of!(cpu_ctx, usage_at_idle) - 4448usize];
["Offset of field: cpu_ctx::hi_fb_dsq_id"]
[::std::mem::offset_of!(cpu_ctx, hi_fb_dsq_id) - 4200usize];
[::std::mem::offset_of!(cpu_ctx, hi_fb_dsq_id) - 4456usize];
["Offset of field: cpu_ctx::lo_fb_dsq_id"]
[::std::mem::offset_of!(cpu_ctx, lo_fb_dsq_id) - 4208usize];
["Offset of field: cpu_ctx::layer_id"][::std::mem::offset_of!(cpu_ctx, layer_id) - 4216usize];
[::std::mem::offset_of!(cpu_ctx, lo_fb_dsq_id) - 4464usize];
["Offset of field: cpu_ctx::in_open_layers"]
[::std::mem::offset_of!(cpu_ctx, in_open_layers) - 4472usize];
["Offset of field: cpu_ctx::layer_id"][::std::mem::offset_of!(cpu_ctx, layer_id) - 4476usize];
["Offset of field: cpu_ctx::task_layer_id"]
[::std::mem::offset_of!(cpu_ctx, task_layer_id) - 4220usize];
["Offset of field: cpu_ctx::llc_id"][::std::mem::offset_of!(cpu_ctx, llc_id) - 4224usize];
["Offset of field: cpu_ctx::node_id"][::std::mem::offset_of!(cpu_ctx, node_id) - 4228usize];
["Offset of field: cpu_ctx::perf"][::std::mem::offset_of!(cpu_ctx, perf) - 4232usize];
["Offset of field: cpu_ctx::lo_fb_seq"][::std::mem::offset_of!(cpu_ctx, lo_fb_seq) - 4240usize];
[::std::mem::offset_of!(cpu_ctx, task_layer_id) - 4480usize];
["Offset of field: cpu_ctx::llc_id"][::std::mem::offset_of!(cpu_ctx, llc_id) - 4484usize];
["Offset of field: cpu_ctx::node_id"][::std::mem::offset_of!(cpu_ctx, node_id) - 4488usize];
["Offset of field: cpu_ctx::perf"][::std::mem::offset_of!(cpu_ctx, perf) - 4492usize];
["Offset of field: cpu_ctx::lo_fb_seq"][::std::mem::offset_of!(cpu_ctx, lo_fb_seq) - 4496usize];
["Offset of field: cpu_ctx::lo_fb_seq_at"]
[::std::mem::offset_of!(cpu_ctx, lo_fb_seq_at) - 4248usize];
[::std::mem::offset_of!(cpu_ctx, lo_fb_seq_at) - 4504usize];
["Offset of field: cpu_ctx::lo_fb_usage_base"]
[::std::mem::offset_of!(cpu_ctx, lo_fb_usage_base) - 4256usize];
["Offset of field: cpu_ctx::open_preempt_layer_order"]
[::std::mem::offset_of!(cpu_ctx, open_preempt_layer_order) - 4264usize];
["Offset of field: cpu_ctx::open_layer_order"]
[::std::mem::offset_of!(cpu_ctx, open_layer_order) - 4328usize];
["Offset of field: cpu_ctx::prox_map"][::std::mem::offset_of!(cpu_ctx, prox_map) - 4392usize];
[::std::mem::offset_of!(cpu_ctx, lo_fb_usage_base) - 4512usize];
["Offset of field: cpu_ctx::ogp_layer_order"]
[::std::mem::offset_of!(cpu_ctx, ogp_layer_order) - 4520usize];
["Offset of field: cpu_ctx::ogn_layer_order"]
[::std::mem::offset_of!(cpu_ctx, ogn_layer_order) - 4584usize];
["Offset of field: cpu_ctx::op_layer_order"]
[::std::mem::offset_of!(cpu_ctx, op_layer_order) - 4648usize];
["Offset of field: cpu_ctx::on_layer_order"]
[::std::mem::offset_of!(cpu_ctx, on_layer_order) - 4712usize];
["Offset of field: cpu_ctx::gp_layer_order"]
[::std::mem::offset_of!(cpu_ctx, gp_layer_order) - 4776usize];
["Offset of field: cpu_ctx::gn_layer_order"]
[::std::mem::offset_of!(cpu_ctx, gn_layer_order) - 4840usize];
["Offset of field: cpu_ctx::prox_map"][::std::mem::offset_of!(cpu_ctx, prox_map) - 4904usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
Expand Down Expand Up @@ -365,6 +384,8 @@ pub struct layer {
pub slice_ns: u64_,
pub fifo: bool,
pub weight: u32_,
pub disallow_open_after_ns: u64_,
pub disallow_preempt_after_ns: u64_,
pub xllc_mig_min_ns: u64_,
pub kind: ::std::os::raw::c_int,
pub preempt: bool,
Expand All @@ -387,7 +408,7 @@ pub struct layer {
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of layer"][::std::mem::size_of::<layer>() - 1601296usize];
["Size of layer"][::std::mem::size_of::<layer>() - 1601312usize];
["Alignment of layer"][::std::mem::align_of::<layer>() - 8usize];
["Offset of field: layer::matches"][::std::mem::offset_of!(layer, matches) - 0usize];
["Offset of field: layer::nr_match_ors"]
Expand All @@ -402,33 +423,37 @@ const _: () = {
["Offset of field: layer::slice_ns"][::std::mem::offset_of!(layer, slice_ns) - 1600800usize];
["Offset of field: layer::fifo"][::std::mem::offset_of!(layer, fifo) - 1600808usize];
["Offset of field: layer::weight"][::std::mem::offset_of!(layer, weight) - 1600812usize];
["Offset of field: layer::disallow_open_after_ns"]
[::std::mem::offset_of!(layer, disallow_open_after_ns) - 1600816usize];
["Offset of field: layer::disallow_preempt_after_ns"]
[::std::mem::offset_of!(layer, disallow_preempt_after_ns) - 1600824usize];
["Offset of field: layer::xllc_mig_min_ns"]
[::std::mem::offset_of!(layer, xllc_mig_min_ns) - 1600816usize];
["Offset of field: layer::kind"][::std::mem::offset_of!(layer, kind) - 1600824usize];
["Offset of field: layer::preempt"][::std::mem::offset_of!(layer, preempt) - 1600828usize];
[::std::mem::offset_of!(layer, xllc_mig_min_ns) - 1600832usize];
["Offset of field: layer::kind"][::std::mem::offset_of!(layer, kind) - 1600840usize];
["Offset of field: layer::preempt"][::std::mem::offset_of!(layer, preempt) - 1600844usize];
["Offset of field: layer::preempt_first"]
[::std::mem::offset_of!(layer, preempt_first) - 1600829usize];
["Offset of field: layer::exclusive"][::std::mem::offset_of!(layer, exclusive) - 1600830usize];
[::std::mem::offset_of!(layer, preempt_first) - 1600845usize];
["Offset of field: layer::exclusive"][::std::mem::offset_of!(layer, exclusive) - 1600846usize];
["Offset of field: layer::growth_algo"]
[::std::mem::offset_of!(layer, growth_algo) - 1600832usize];
["Offset of field: layer::nr_tasks"][::std::mem::offset_of!(layer, nr_tasks) - 1600840usize];
["Offset of field: layer::cpus_seq"][::std::mem::offset_of!(layer, cpus_seq) - 1600848usize];
["Offset of field: layer::node_mask"][::std::mem::offset_of!(layer, node_mask) - 1600856usize];
["Offset of field: layer::llc_mask"][::std::mem::offset_of!(layer, llc_mask) - 1600864usize];
[::std::mem::offset_of!(layer, growth_algo) - 1600848usize];
["Offset of field: layer::nr_tasks"][::std::mem::offset_of!(layer, nr_tasks) - 1600856usize];
["Offset of field: layer::cpus_seq"][::std::mem::offset_of!(layer, cpus_seq) - 1600864usize];
["Offset of field: layer::node_mask"][::std::mem::offset_of!(layer, node_mask) - 1600872usize];
["Offset of field: layer::llc_mask"][::std::mem::offset_of!(layer, llc_mask) - 1600880usize];
["Offset of field: layer::check_no_idle"]
[::std::mem::offset_of!(layer, check_no_idle) - 1600872usize];
["Offset of field: layer::perf"][::std::mem::offset_of!(layer, perf) - 1600876usize];
[::std::mem::offset_of!(layer, check_no_idle) - 1600888usize];
["Offset of field: layer::perf"][::std::mem::offset_of!(layer, perf) - 1600892usize];
["Offset of field: layer::refresh_cpus"]
[::std::mem::offset_of!(layer, refresh_cpus) - 1600880usize];
["Offset of field: layer::cpus"][::std::mem::offset_of!(layer, cpus) - 1600888usize];
["Offset of field: layer::nr_cpus"][::std::mem::offset_of!(layer, nr_cpus) - 1600952usize];
[::std::mem::offset_of!(layer, refresh_cpus) - 1600896usize];
["Offset of field: layer::cpus"][::std::mem::offset_of!(layer, cpus) - 1600904usize];
["Offset of field: layer::nr_cpus"][::std::mem::offset_of!(layer, nr_cpus) - 1600968usize];
["Offset of field: layer::nr_llc_cpus"]
[::std::mem::offset_of!(layer, nr_llc_cpus) - 1600956usize];
[::std::mem::offset_of!(layer, nr_llc_cpus) - 1600972usize];
["Offset of field: layer::llcs_to_drain"]
[::std::mem::offset_of!(layer, llcs_to_drain) - 1601216usize];
[::std::mem::offset_of!(layer, llcs_to_drain) - 1601232usize];
["Offset of field: layer::llc_drain_cnt"]
[::std::mem::offset_of!(layer, llc_drain_cnt) - 1601224usize];
["Offset of field: layer::name"][::std::mem::offset_of!(layer, name) - 1601228usize];
[::std::mem::offset_of!(layer, llc_drain_cnt) - 1601240usize];
["Offset of field: layer::name"][::std::mem::offset_of!(layer, name) - 1601244usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
Expand Down

0 comments on commit 2d2d35e

Please sign in to comment.