Skip to content

Commit

Permalink
misc package path cleanup and disable build_id
Browse files Browse the repository at this point in the history
(cherry picked from commit 31c6c70)
  • Loading branch information
likewhatevs committed Dec 4, 2024
1 parent a738a2a commit 60f2403
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions rust/scx_utils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pub use paste::paste;

mod clang_info;

mod bindings;
pub mod bindings;

mod bpf_builder;
pub use bpf_builder::BpfBuilder;
Expand All @@ -52,7 +52,7 @@ pub use user_exit_info::SCX_ECODE_ACT_RESTART;
pub use user_exit_info::SCX_ECODE_RSN_HOTPLUG;
pub use user_exit_info::UEI_DUMP_PTR_MUTEX;

pub mod build_id;
//pub mod build_id;
pub mod compat;

mod libbpf_logger;
Expand Down
12 changes: 6 additions & 6 deletions scheds/rust/scx_rusty/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ use libbpf_rs::MapCore as _;
use libbpf_rs::OpenObject;
use log::info;
use scx_stats::prelude::*;
use scx_utils::build_id;
// use scx_utils::build_id;
use scx_utils::compat;
use scx_utils::import_enums;
use scx_utils::init_libbpf_logging;
Expand Down Expand Up @@ -359,10 +359,10 @@ impl<'a> Scheduler<'a> {
let mut skel_builder = BpfSkelBuilder::default();
skel_builder.obj_builder.debug(opts.verbose > 0);
init_libbpf_logging(None);
info!(
"Running scx_rusty (build ID: {})",
*build_id::SCX_FULL_VERSION
);
// info!(
// "Running scx_rusty (build ID: {})",
// *build_id::SCX_FULL_VERSION
// );
let mut skel = scx_ops_open!(skel_builder, open_object, rusty).unwrap();

// Initialize skel according to @opts.
Expand Down Expand Up @@ -628,7 +628,7 @@ fn main() -> Result<()> {
let opts = Opts::parse();

if opts.version {
println!("scx_rusty: {}", *build_id::SCX_FULL_VERSION);
// println!("scx_rusty: {}", *build_id::SCX_FULL_VERSION);
return Ok(());
}

Expand Down

0 comments on commit 60f2403

Please sign in to comment.