Skip to content

Commit 909f169

Browse files
Nero5023facebook-github-bot
authored andcommitted
Update perf-event fork
Summary: We forked perf-event at here https://github.com/krallin/perf-event.git, but it is too old and this PR facebook/buck2#947 needs the new perf-event. So forking the newest perf-event at here https://github.com/Nero5023/perf-event and here is the [change](jimblandy/perf-event@master...Nero5023:perf-event:meta). The new perf-event contains the changes about our original fork, but the api is different, so update the usage too. Reviewed By: JakobDegen Differential Revision: D75024257 fbshipit-source-id: 200cb01f28a05e0b652fe69a49fbe69623800fd1
1 parent dbd5c71 commit 909f169

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

shim/third-party/rust/Cargo.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ parking_lot = { version = "0.11.2", features = ["send_guard"] }
150150
paste = "1.0"
151151
pathdiff = "0.2"
152152
perf-event = "0.4"
153-
perf-event-open-sys = "4.0"
153+
perf-event-open-sys = "5.0"
154154
pin-project = "0.4.29"
155155
plist = "0.5"
156156
pretty_assertions = "1.2.1"
@@ -245,8 +245,9 @@ zstd = "0.13.0"
245245

246246
[patch.crates-io]
247247
# For https://github.com/jimblandy/perf-event/pull/29
248-
perf-event = { git = "https://github.com/krallin/perf-event.git", rev = "86224a9bc025d5d19f719542f27c8c629a08b167", version = "0.4" }
249-
perf-event-open-sys = { git = "https://github.com/krallin/perf-event.git", rev = "86224a9bc025d5d19f719542f27c8c629a08b167", version = "4.0" }
248+
# Base on the comment in https://github.com/jimblandy/perf-event/pull/53, we will no long need this patch in future.
249+
perf-event = { git = "https://github.com/Nero5023/perf-event.git", rev = "6dae86b6d4807acec081e6dc0a53167f57f8c0f4", version = "0.4" }
250+
perf-event-open-sys = { git = "https://github.com/Nero5023/perf-event.git", rev = "6dae86b6d4807acec081e6dc0a53167f57f8c0f4", version = "5.0" }
250251

251252
# Windows-specific dependencies
252253
[target."cfg(windows)".dependencies]
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
['cfg(all())']
2+
version = ">=5.0"
3+
extra_srcs = ["src/version"]

0 commit comments

Comments
 (0)