Skip to content

Commit

Permalink
Modify the interface process_bpf_stacktraces()
Browse files Browse the repository at this point in the history
  • Loading branch information
yinjiping committed May 3, 2024
1 parent 57b2d49 commit c729e69
Show file tree
Hide file tree
Showing 6 changed files with 432 additions and 437 deletions.
6 changes: 6 additions & 0 deletions agent/src/ebpf/code.style
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#! /bin/bash

indent -npro -kr -i8 -ts8 -nss -nsc -ncs -nprs -sob -l80 -ss -cp1 --space-after-for --space-after-if --space-after-while --space-special-semicolon --blank-lines-after-procedures -v $1
sed -i "s/{ }/{}/g" $1
sed -i "s/) ;/);/g" $1
sed -i "s/^ //g" $1
8 changes: 4 additions & 4 deletions agent/src/ebpf/samples/rust/profiler/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,10 @@ fn main() {

bpf_tracer_finish();

//if cpdbg_set_config(60, debug_callback) != 0 {
// println!("cpdbg_set_config() error");
// ::std::process::exit(1);
//}
if cpdbg_set_config(60, debug_callback) != 0 {
println!("cpdbg_set_config() error");
::std::process::exit(1);
}

let stats = socket_tracer_stats();
print!("{:#?}\n", stats);
Expand Down

0 comments on commit c729e69

Please sign in to comment.