|
|
@ -50,7 +50,7 @@ use clap::Parser;
|
|
|
|
{% endif -%}
|
|
|
|
{% endif -%}
|
|
|
|
|
|
|
|
|
|
|
|
#[rustfmt::skip]
|
|
|
|
#[rustfmt::skip]
|
|
|
|
use log::{debug, info, warn};
|
|
|
|
use log::{debug, warn};
|
|
|
|
use tokio::signal;
|
|
|
|
use tokio::signal;
|
|
|
|
|
|
|
|
|
|
|
|
{% if program_types_with_opts contains program_type -%}
|
|
|
|
{% if program_types_with_opts contains program_type -%}
|
|
|
@ -205,9 +205,9 @@ async fn main() -> anyhow::Result<()> {
|
|
|
|
program.attach("{{tracepoint_name}}")?;
|
|
|
|
program.attach("{{tracepoint_name}}")?;
|
|
|
|
{%- endcase %}
|
|
|
|
{%- endcase %}
|
|
|
|
|
|
|
|
|
|
|
|
info!("Waiting for Ctrl-C...");
|
|
|
|
println!("Waiting for Ctrl-C...");
|
|
|
|
signal::ctrl_c().await?;
|
|
|
|
signal::ctrl_c().await?;
|
|
|
|
info!("Exiting...");
|
|
|
|
println!("Exiting...");
|
|
|
|
|
|
|
|
|
|
|
|
Ok(())
|
|
|
|
Ok(())
|
|
|
|
}
|
|
|
|
}
|
|
|
|