Bump bpf-tools to v1.14 (#19023)

- improved memory operations performance
- minor fixes
This commit is contained in:
Dmitri Makarov 2021-08-03 11:13:58 +02:00 committed by GitHub
parent e4f3b84b93
commit cde1461555
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -1314,7 +1314,7 @@ fn assert_instruction_count() {
("relative_call", 10), ("relative_call", 10),
("sanity", 169), ("sanity", 169),
("sanity++", 168), ("sanity++", 168),
("secp256k1_recover", 357), ("secp256k1_recover", 359),
("sha", 1040), ("sha", 1040),
("struct_pass", 8), ("struct_pass", 8),
("struct_ret", 22), ("struct_ret", 22),
@ -1342,7 +1342,7 @@ fn assert_instruction_count() {
} }
let mut passed = true; let mut passed = true;
println!("\n {:30} expected actual diff", "BPF program"); println!("\n {:36} expected actual diff", "BPF program");
for program in programs.iter() { for program in programs.iter() {
let program_id = solana_sdk::pubkey::new_rand(); let program_id = solana_sdk::pubkey::new_rand();
let key = solana_sdk::pubkey::new_rand(); let key = solana_sdk::pubkey::new_rand();
@ -1351,7 +1351,7 @@ fn assert_instruction_count() {
let count = run_program(program.0, &program_id, parameter_accounts, &[]).unwrap(); let count = run_program(program.0, &program_id, parameter_accounts, &[]).unwrap();
let diff: i64 = count as i64 - program.1 as i64; let diff: i64 = count as i64 - program.1 as i64;
println!( println!(
" {:30} {:8} {:6} {:+5} ({:+3.0}%)", " {:36} {:8} {:6} {:+5} ({:+3.0}%)",
program.0, program.0,
program.1, program.1,
count, count,

View File

@ -92,7 +92,7 @@ if [[ ! -e criterion-$version.md || ! -e criterion ]]; then
fi fi
# Install Rust-BPF # Install Rust-BPF
version=v1.13 version=v1.14
if [[ ! -e bpf-tools-$version.md || ! -e bpf-tools ]]; then if [[ ! -e bpf-tools-$version.md || ! -e bpf-tools ]]; then
( (
set -e set -e

View File

@ -456,7 +456,7 @@ fn build_bpf_package(config: &Config, target_directory: &Path, package: &cargo_m
install_if_missing( install_if_missing(
config, config,
"bpf-tools", "bpf-tools",
"v1.13", "v1.14",
"https://github.com/solana-labs/bpf-tools/releases/download", "https://github.com/solana-labs/bpf-tools/releases/download",
&PathBuf::from(bpf_tools_filename), &PathBuf::from(bpf_tools_filename),
) )