We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3373ca6 commit 2485c24Copy full SHA for 2485c24
drivers/char/rust_example_3.rs
@@ -36,6 +36,14 @@ impl KernelModule for RustExample3 {
36
println!("[3] Parameters:");
37
println!("[3] my_bool: {}", my_bool.read());
38
println!("[3] my_i32: {}", my_i32.read());
39
+
40
+ // Including this large variable on the stack will trigger a call to
41
+ // `compiler_builtins::probestack::__rust_probestack` on x86_64.
42
+ // This will verify that we are able to link modules which call
43
+ // `__rust_probestack`.
44
+ let x: [u64; 1028] = [5; 1028];
45
+ println!("Large array has length: {}", x.len());
46
47
Ok(RustExample3 {
48
message: "on the heap!".to_owned(),
49
})
0 commit comments