File tree Expand file tree Collapse file tree 2 files changed +6
-12
lines changed Expand file tree Collapse file tree 2 files changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ name = "profile"
3
3
version = " 0.1.0"
4
4
authors = [" Kuifeng Lee <kuifeng@fb.com>" ]
5
5
license = " GPL-2.0 OR BSD-3-Clause"
6
+ edition = " 2021"
6
7
7
8
[dependencies ]
8
9
libbpf-rs = " 0.19"
Original file line number Diff line number Diff line change @@ -6,25 +6,18 @@ use std::mem;
6
6
use std:: result:: Result ;
7
7
use std:: time:: Duration ;
8
8
9
- extern crate nix;
10
- use nix:: unistd:: close;
11
-
12
- extern crate libbpf_rs;
9
+ use blazesym:: symbolize;
13
10
14
- extern crate clap;
15
11
use clap:: Parser ;
16
12
13
+ use nix:: unistd:: close;
14
+
17
15
#[ path = "bpf/.output/profile.skel.rs" ]
18
16
mod profile;
19
- use profile:: * ;
20
-
21
- extern crate blazesym;
22
- use blazesym:: symbolize;
23
-
24
- extern crate libc;
25
-
26
17
mod syscall;
27
18
19
+ use profile:: * ;
20
+
28
21
const MAX_STACK_DEPTH : usize = 128 ;
29
22
const TASK_COMM_LEN : usize = 16 ;
30
23
You can’t perform that action at this time.
0 commit comments