Skip to content

Commit caa6b19

Browse files
authored
Merge pull request #520 from mstange/update-deps-20240307
Update dependencies
2 parents 19a42cc + a469bec commit caa6b19

File tree

8 files changed

+195
-209
lines changed

8 files changed

+195
-209
lines changed

Cargo.lock

Lines changed: 181 additions & 190 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

etw-reader/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ rustc-hash = "2"
1818
memoffset = "0.9"
1919

2020
[dependencies.windows]
21-
version = "0.59"
21+
version = "0.60"
2222
features = ["Win32_System_Diagnostics_Etw",
2323
"Win32_System_Diagnostics_Debug",
2424
"Win32_System_SystemInformation",

samply-quota-manager/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ repository = "https://github.com/mstange/samply/"
1010
readme = "README.md"
1111

1212
[dependencies]
13-
bytesize = "1.3.0"
13+
bytesize = "2"
1414
log = "0.4.21"
1515
tokio = { version = "1.39", features = [
1616
"fs",

samply-symbols/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ yoke-derive = "0.8"
5555
nom = "7.1.1"
5656
zerocopy = "0.8"
5757
zerocopy-derive = "0.8"
58-
linux-perf-data = "0.10.0"
58+
linux-perf-data = "0.11"
5959

6060
[dev-dependencies]
6161
memmap2 = "0.9.4"

samply/Cargo.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ fxprof-processed-profile = { version = "0.8", path = "../fxprof-processed-profil
1515
# framehop = { path = "../../framehop" }
1616
framehop = "0.13"
1717
# linux-perf-data = { path = "../../linux-perf-data" }
18-
linux-perf-data = "0.10.1"
18+
linux-perf-data = "0.11"
1919

2020
tokio = { version = "1.39", features = ["rt", "rt-multi-thread", "macros"] }
2121
tokio-util = "0.7.11"
@@ -48,7 +48,7 @@ ctrlc = "3.4.4"
4848
log = "0.4.21"
4949
env_logger = "0.11"
5050
cfg-if = "1.0.0"
51-
fs4 = "0.12"
51+
fs4 = "0.13"
5252
humantime = "2.1.0"
5353
shlex = "1.3.0"
5454
samply-quota-manager = { version = "0.1.0", path = "../samply-quota-manager" }
@@ -85,10 +85,9 @@ which = "7.0.0"
8585
winver = "1"
8686

8787
# etw-reader = { path = "../etw-reader" }
88-
# linux-perf-data = "0.10.1"
8988

9089
[target.'cfg(windows)'.dependencies.windows]
91-
version = "0.59"
90+
version = "0.60"
9291
features = ["Win32",
9392
"Win32_Foundation",
9493
"Win32_Security",

samply/src/windows/utility_process/file_channel.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ use std::marker::PhantomData;
2525
use std::path::Path;
2626

2727
use fs4::fs_std::FileExt;
28-
use fs4::lock_contended_error;
2928
use serde::de::DeserializeOwned;
3029
use serde::ser::Serialize;
3130

@@ -111,15 +110,15 @@ impl<T: DeserializeOwned> Receiver<T> {
111110
// Poll until self.current_lock is locked by the other side.
112111
loop {
113112
match self.current_lock.try_lock_exclusive() {
114-
Ok(()) => {
113+
Ok(true) => {
115114
// Not locked yet.
116115
FileExt::unlock(&self.current_lock).unwrap();
117116
}
118-
Err(e) if e.kind() == std::io::ErrorKind::Interrupted => {}
119-
Err(e) if e.raw_os_error() == lock_contended_error().raw_os_error() => {
117+
Ok(false) => {
120118
// Success! The helper process now owns the file lock of self.current_lock.
121119
break;
122120
}
121+
Err(e) if e.kind() == std::io::ErrorKind::Interrupted => {}
123122
Err(e) => return Err(e),
124123
}
125124
std::thread::sleep(std::time::Duration::from_millis(50));

wholesym/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ samply-api = { version = "0.24.0", path = "../samply-api", features = ["send_fut
2222
samply-symbols = { version = "0.24.0", path = "../samply-symbols", features = ["send_futures"] }
2323
# symsrv = { path = "../../symsrv" }
2424
symsrv = "0.5.2"
25-
yoke = "0.7"
26-
yoke-derive = "0.7"
25+
yoke = "0.8"
26+
yoke-derive = "0.8"
2727
libc = "0.2"
2828
uuid = "1"
2929
reqwest = { version = "0.12", default-features = false, features = [
@@ -37,7 +37,7 @@ bytes = "1.10"
3737
memmap2 = "0.9.4"
3838
tokio = { version = "1.38", features = ["fs"] }
3939
futures-util = "0.3.30"
40-
fs4 = "0.12"
40+
fs4 = "0.13"
4141
thiserror = "2"
4242
async-compression = { version = "0.4", default-features = false, features = [
4343
"tokio",

wholesym/src/file_creation.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ use std::io;
22
use std::path::Path;
33

44
use fs4::fs_std::FileExt;
5-
use fs4::lock_contended_error;
65

76
/// The error type for the `create_file_cleanly` function.
87
#[derive(thiserror::Error, Debug)]
@@ -189,11 +188,9 @@ async fn lock_file_exclusive(file: std::fs::File) -> Result<std::fs::File, io::E
189188
// We have a retry loop here because file locking can be interrupted by signals.
190189
for _ in 0..5 {
191190
match file.try_lock_exclusive() {
192-
Ok(()) => return Ok(file),
191+
Ok(true) => return Ok(file),
192+
Ok(false) => return lock_file_exclusive_with_blocking_thread(file).await,
193193
Err(e) if e.kind() == io::ErrorKind::Interrupted => continue,
194-
Err(e) if e.raw_os_error() == lock_contended_error().raw_os_error() => {
195-
return lock_file_exclusive_with_blocking_thread(file).await
196-
}
197194
Err(e) => return Err(e),
198195
}
199196
}

0 commit comments

Comments
 (0)