Skip to content

Commit

Permalink
regenerate bindgens
Browse files Browse the repository at this point in the history
(cherry picked from commit 2b79641)
  • Loading branch information
likewhatevs committed Dec 26, 2024
1 parent 0d68a5c commit 3abd14e
Showing 1 changed file with 39 additions and 35 deletions.
74 changes: 39 additions & 35 deletions scheds/rust/scx_layered/src/bpf_intf.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* 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 @@ -288,7 +289,8 @@ pub const layer_match_kind_MATCH_GROUP_ID_EQUALS: layer_match_kind = 7;
pub const layer_match_kind_MATCH_PID_EQUALS: layer_match_kind = 8;
pub const layer_match_kind_MATCH_PPID_EQUALS: layer_match_kind = 9;
pub const layer_match_kind_MATCH_TGID_EQUALS: layer_match_kind = 10;
pub const layer_match_kind_NR_LAYER_MATCH_KINDS: layer_match_kind = 11;
pub const layer_match_kind_MATCH_NSPID_EQUALS: layer_match_kind = 11;
pub const layer_match_kind_NR_LAYER_MATCH_KINDS: layer_match_kind = 12;
pub type layer_match_kind = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
Expand All @@ -303,11 +305,12 @@ pub struct layer_match {
pub pid: u32_,
pub ppid: u32_,
pub tgid: u32_,
pub nsid: u64_,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of layer_match"][::std::mem::size_of::<layer_match>() - 4156usize];
["Alignment of layer_match"][::std::mem::align_of::<layer_match>() - 4usize];
["Size of layer_match"][::std::mem::size_of::<layer_match>() - 4168usize];
["Alignment of layer_match"][::std::mem::align_of::<layer_match>() - 8usize];
["Offset of field: layer_match::kind"][::std::mem::offset_of!(layer_match, kind) - 0usize];
["Offset of field: layer_match::cgroup_prefix"]
[::std::mem::offset_of!(layer_match, cgroup_prefix) - 4usize];
Expand All @@ -323,21 +326,22 @@ const _: () = {
["Offset of field: layer_match::pid"][::std::mem::offset_of!(layer_match, pid) - 4144usize];
["Offset of field: layer_match::ppid"][::std::mem::offset_of!(layer_match, ppid) - 4148usize];
["Offset of field: layer_match::tgid"][::std::mem::offset_of!(layer_match, tgid) - 4152usize];
["Offset of field: layer_match::nsid"][::std::mem::offset_of!(layer_match, nsid) - 4160usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct layer_match_ands {
pub matches: [layer_match; 11usize],
pub matches: [layer_match; 12usize],
pub nr_match_ands: ::std::os::raw::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of layer_match_ands"][::std::mem::size_of::<layer_match_ands>() - 45720usize];
["Alignment of layer_match_ands"][::std::mem::align_of::<layer_match_ands>() - 4usize];
["Size of layer_match_ands"][::std::mem::size_of::<layer_match_ands>() - 50024usize];
["Alignment of layer_match_ands"][::std::mem::align_of::<layer_match_ands>() - 8usize];
["Offset of field: layer_match_ands::matches"]
[::std::mem::offset_of!(layer_match_ands, matches) - 0usize];
["Offset of field: layer_match_ands::nr_match_ands"]
[::std::mem::offset_of!(layer_match_ands, nr_match_ands) - 45716usize];
[::std::mem::offset_of!(layer_match_ands, nr_match_ands) - 50016usize];
};
pub const layer_growth_algo_GROWTH_ALGO_STICKY: layer_growth_algo = 0;
pub const layer_growth_algo_GROWTH_ALGO_LINEAR: layer_growth_algo = 1;
Expand Down Expand Up @@ -383,48 +387,48 @@ pub struct layer {
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
["Size of layer"][::std::mem::size_of::<layer>() - 1463568usize];
["Size of layer"][::std::mem::size_of::<layer>() - 1601296usize];
["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"]
[::std::mem::offset_of!(layer, nr_match_ors) - 1463040usize];
["Offset of field: layer::id"][::std::mem::offset_of!(layer, id) - 1463044usize];
[::std::mem::offset_of!(layer, nr_match_ors) - 1600768usize];
["Offset of field: layer::id"][::std::mem::offset_of!(layer, id) - 1600772usize];
["Offset of field: layer::min_exec_ns"]
[::std::mem::offset_of!(layer, min_exec_ns) - 1463048usize];
[::std::mem::offset_of!(layer, min_exec_ns) - 1600776usize];
["Offset of field: layer::max_exec_ns"]
[::std::mem::offset_of!(layer, max_exec_ns) - 1463056usize];
[::std::mem::offset_of!(layer, max_exec_ns) - 1600784usize];
["Offset of field: layer::yield_step_ns"]
[::std::mem::offset_of!(layer, yield_step_ns) - 1463064usize];
["Offset of field: layer::slice_ns"][::std::mem::offset_of!(layer, slice_ns) - 1463072usize];
["Offset of field: layer::fifo"][::std::mem::offset_of!(layer, fifo) - 1463080usize];
["Offset of field: layer::weight"][::std::mem::offset_of!(layer, weight) - 1463084usize];
[::std::mem::offset_of!(layer, yield_step_ns) - 1600792usize];
["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::xllc_mig_min_ns"]
[::std::mem::offset_of!(layer, xllc_mig_min_ns) - 1463088usize];
["Offset of field: layer::kind"][::std::mem::offset_of!(layer, kind) - 1463096usize];
["Offset of field: layer::preempt"][::std::mem::offset_of!(layer, preempt) - 1463100usize];
[::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];
["Offset of field: layer::preempt_first"]
[::std::mem::offset_of!(layer, preempt_first) - 1463101usize];
["Offset of field: layer::exclusive"][::std::mem::offset_of!(layer, exclusive) - 1463102usize];
[::std::mem::offset_of!(layer, preempt_first) - 1600829usize];
["Offset of field: layer::exclusive"][::std::mem::offset_of!(layer, exclusive) - 1600830usize];
["Offset of field: layer::growth_algo"]
[::std::mem::offset_of!(layer, growth_algo) - 1463104usize];
["Offset of field: layer::nr_tasks"][::std::mem::offset_of!(layer, nr_tasks) - 1463112usize];
["Offset of field: layer::cpus_seq"][::std::mem::offset_of!(layer, cpus_seq) - 1463120usize];
["Offset of field: layer::node_mask"][::std::mem::offset_of!(layer, node_mask) - 1463128usize];
["Offset of field: layer::llc_mask"][::std::mem::offset_of!(layer, llc_mask) - 1463136usize];
[::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];
["Offset of field: layer::check_no_idle"]
[::std::mem::offset_of!(layer, check_no_idle) - 1463144usize];
["Offset of field: layer::perf"][::std::mem::offset_of!(layer, perf) - 1463148usize];
[::std::mem::offset_of!(layer, check_no_idle) - 1600872usize];
["Offset of field: layer::perf"][::std::mem::offset_of!(layer, perf) - 1600876usize];
["Offset of field: layer::refresh_cpus"]
[::std::mem::offset_of!(layer, refresh_cpus) - 1463152usize];
["Offset of field: layer::cpus"][::std::mem::offset_of!(layer, cpus) - 1463160usize];
["Offset of field: layer::nr_cpus"][::std::mem::offset_of!(layer, nr_cpus) - 1463224usize];
[::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];
["Offset of field: layer::nr_llc_cpus"]
[::std::mem::offset_of!(layer, nr_llc_cpus) - 1463228usize];
[::std::mem::offset_of!(layer, nr_llc_cpus) - 1600956usize];
["Offset of field: layer::llcs_to_drain"]
[::std::mem::offset_of!(layer, llcs_to_drain) - 1463488usize];
[::std::mem::offset_of!(layer, llcs_to_drain) - 1601216usize];
["Offset of field: layer::llc_drain_cnt"]
[::std::mem::offset_of!(layer, llc_drain_cnt) - 1463496usize];
["Offset of field: layer::name"][::std::mem::offset_of!(layer, name) - 1463500usize];
[::std::mem::offset_of!(layer, llc_drain_cnt) - 1601224usize];
["Offset of field: layer::name"][::std::mem::offset_of!(layer, name) - 1601228usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
Expand Down

0 comments on commit 3abd14e

Please sign in to comment.