scx_lavd: remove unused rust functions

Signed-off-by: Changwoo Min <changwoo@igalia.com>
This commit is contained in:
Changwoo Min 2024-08-27 10:52:37 +09:00
parent 1421094f32
commit 9c4428fd8b

View File

@ -597,10 +597,6 @@ impl<'a> Scheduler<'a> {
self.skel.maps.bss_data.intrspc.cmd = LAVD_CMD_NOP;
}
fn running(&mut self) -> bool {
RUNNING.load(Ordering::Relaxed) && !uei_exited!(&self.skel, uei)
}
fn stats_req_to_res(&mut self, req: &StatsReq) -> Result<StatsRes> {
Ok(match req {
StatsReq::NewSampler(tid) => {
@ -688,10 +684,6 @@ fn init_log(opts: &Opts) {
.unwrap();
}
extern "C" fn handle_sigint(_: libc::c_int, _: *mut libc::siginfo_t, _: *mut libc::c_void) {
RUNNING.store(false, Ordering::SeqCst);
}
fn main() -> Result<()> {
let mut opts = Opts::parse();
opts.proc().unwrap();