-
Notifications
You must be signed in to change notification settings - Fork 1.2k
added trace logging in EVM interpreter loop #9561
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
+58
−0
Merged
Changes from all commits
Commits
Show all changes
346 commits
Select commit
Hold shift + click to select a range
da7473d
fix lock
pgherveou df8d71d
Update from github-actions[bot] running command 'fmt'
github-actions[bot] 359b181
fixes
pgherveou 58b9220
Rve/revm arithmetic instructions WIP (#9361)
0xRVE 5b304a0
fixes gas computation of evm arithemtic instructions (#9379)
0xRVE aa40c56
added bitwise test
2281fb7
added tests for bitwise
509b0ee
fix comment
90d54d7
fixed bitwise compilation issue
e0a0d9f
ignore CLZ test
1921aef
host.rs::balance test not working
94697f7
fixed host:balance test. need to find global var for existential depo…
93a5dae
mult and offset to variables
db394c8
cleanup
a64ce67
added test for selfbalance
faa067c
fixe test host::selfbalance
5c30af0
cargo clippy
b9d1a58
added test for host::extcodesize
b5c8baf
added test for extcodehash
34e3e78
stared making blockhash instruction
6390a20
blockhash runs out of gas for some reason
b53d220
added stubs for other tests in host.rs
7a13f03
added Debug to exec.rs::Key
73adf94
added host test sload
e92b7d0
added host.rs test sstore
f5accbf
not so easy to test transient storage
2d88b1d
added test for selfdestruct but it gives out-of-gas error
d1b2baf
clean up
d6c852a
fixed Host.sol
8b9d9ba
fixed test for blockhash in host.rs
dfbaf67
created separate Host::selfdetruct fixtures for EVM and PVM
81f7da0
enabled solc and resolc in blockhash test in host.rs
aadfe10
added test for extcodecopy
d376bfc
cleanup
936c20d
cleanup
4f0f468
clean up
148e0e6
Update from github-actions[bot] running command 'prdoc --audience run…
github-actions[bot] 8817d7e
Revert "fixes gas computation of evm arithemtic instructions (#9379)"
02198ce
Revert "Rve/revm arithmetic instructions WIP (#9361)"
ab72894
added arithmetic
d8142a3
added test for transient storage in host.rs
5842fa7
cleanup
c071b7d
added test for memory
bb14f1c
[pallet-revive] do not silently fail Solidity fixtures compilation (#…
xermicus 35bc95d
removed some function from Memory.sol fixture
90fb377
Merge remote-tracking branch 'origin/pg/revm' into rve/revm-instructi…
ef5bbc8
added test for mstore8
b00080d
turn off yul optimizer and added test for msize
22460f8
added test for mcopy in memory.rs
392cadd
selfdestruct doesnt work
1bfbaa8
refactor more benchmarks
pgherveou 96e5402
added test for control jump
61f5bb3
added test for JUMPI instruction in control
ce3570d
cleanup
87d61cd
disable host selfdestruct opcode
c2170db
Merge remote-tracking branch 'origin/pg/revm' into rve/revm-instructi…
36f6d39
cleanup
cfec632
cleanup
6e4ca1f
refactor arithmetic tests
5278629
refactor bitwise tests
3e6a43b
refactor control tests
68bc07c
require call in solidity is not failing on incorrect predicate
d67c22e
inside test need to check for REVERT flag in result of bare call
f74a739
require in solidity fails/reverts without giving a clear error message
434fd78
moved decode_revert_message to tests.rs
9109b74
fixed bitwise tests
7f79d2e
Merge branch 'master' into pg/revm
pgherveou 076246c
Merge branch 'master' into pg/revm
pgherveou b2ceaae
revm file shuffling
pgherveou 7e68c51
fixes
pgherveou 6ec1681
rm stuff for later
pgherveou c89d026
rm evm
pgherveou d53e0ac
rm evm stuff
pgherveou edde1d1
Update from github-actions[bot] running command 'prdoc --audience run…
github-actions[bot] 4f38703
rm
pgherveou d1683f8
removed some tests from arithmetic
ab3761e
taplo fix
pgherveou 7dadbc1
fix up cargo.lock
pgherveou abcd13c
try
pgherveou 6d30298
fixes
pgherveou 68e9a84
Merge branch 'master' into pg/revm-base
pgherveou 551c711
rm vm/runtime.rs
pgherveou 2c308d7
Merge branch 'pg/revm-base' into pg/revm
pgherveou 2debf91
fix
pgherveou 0175328
nit
pgherveou 59e59e8
fixes
pgherveou f1f2ffc
nit
pgherveou 82ea9bc
update call_with_code_per_byte
pgherveou 15935c3
not getting the right balance after INVALID instruction
6f7b2bf
Merge remote-tracking branch 'origin/pg/revm' into rve/revm-instructi…
20511d1
fixes
pgherveou 4bf8aee
Merge remote-tracking branch 'origin/pg/revm' into rve/revm-instructi…
e1bbcb9
added migration
pgherveou 78c92d3
Merge branch 'master' into pg/revm-base
pgherveou 3789665
Merge branch 'pg/revm-base' into pg/revm
pgherveou f8da76f
refactoring
pgherveou b1b1192
fix clippy
pgherveou a829fab
fix clippy
pgherveou 1066074
fixedd test for INVALID opcode
d11dd3f
Merge remote-tracking branch 'origin/pg/revm' into rve/revm-instructi…
4b5edb5
added assert for flag revert
e482eee
added tests for stack
fd57f68
review comments
de65cce
rustfmt
69602ac
added selfdestruct
d9e50a1
cleanup
b9c406e
rustfmt
24f4c6d
license
b8970a0
rustfmt
ade000c
fmt
c6378fb
fix macro import issue
3e1fc33
cargo check
dba3403
removed loggings
8112b00
cleanup
883af60
removed decode_revert_message
4731b5e
cargo +nightly fmt
pgherveou 3c4f5c4
Merge branch 'master' into pg/revm
pgherveou 953ee61
merge fix
pgherveou 7cee5be
simplify migration tests
pgherveou b8dc717
add migration
pgherveou 3503649
removed EVM version check from evm instructions
574fb97
removed log::info and println
81578a0
remove unneeded tests for this PR
pgherveou fa0ffa9
fix CALLDATACOPY gas
22cd095
cleanup
9df994e
added comments to control assembly contracts for jump and jumpi
2f13212
Merge remote-tracking branch 'origin/pg/revm' into rve/revm-instructi…
6000ed4
fixes
pgherveou c679776
keep these files for next PR
pgherveou 5f839b6
comments
pgherveou 8110392
fixes
pgherveou 7a1c0a6
fix
pgherveou f3289d4
Merge remote-tracking branch 'origin/pg/revm' into rve/revm-instructi…
3512769
fix after merge
3b19c42
fmt
fa902be
make cargo check pass
4657b64
fmt
83ea8cd
Update from github-actions[bot] running command 'bench --runtime dev …
github-actions[bot] 6706b9c
fix clippy
165957c
Update from github-actions[bot] running command 'prdoc --audience run…
github-actions[bot] 2b07ca6
rename seal_to_account_id
pgherveou 0c4d0cd
Merge remote-tracking branch 'origin/pg/revm' into rve/revm-instructi…
f96fa39
update PRDOC
pgherveou 2f369ad
Merge branch 'master' into pg/revm
pgherveou 9f92c36
install solc in workflow
b66b47a
fix bench
pgherveou 4d0db7e
output.data shoudl be untouched
pgherveou b7c0f7f
Merge remote-tracking branch 'origin/pg/revm' into rve/revm-instructi…
674e559
fix host test
42f8c2d
fmt
f5caa32
review fixes
4a98ea1
moved transfer_with_dust out of the transfer function
0784a4a
semicolon
b747e98
removed allow deadcode from H160Mapper in address.rs
79b84da
install solidity in job
pgherveou 484edb2
fixed some stuff in host instructions
c907833
fmt
6403ef1
added install resolc to tests-misc.yml
4b80099
use resolc too
pgherveou 4b6f4d2
rm line
pgherveou 28b6217
Merge remote-tracking branch 'origin/pg/revm' into rve/revm-instructi…
c2332ca
trigger ci
ab15dc1
enforce evm code size limit
pgherveou e93c1a0
fix
pgherveou 04d0551
fix
pgherveou 8f8ebcc
fix
pgherveou dbb4b93
Merge remote-tracking branch 'origin/pg/revm' into rve/revm-instructi…
47b39c1
fixed gas in hsot.rs
d1d5199
cleanup
dec0849
PR review
pgherveou dbfc430
make pristine unbounded and check PVM & EVM code size
pgherveou 87b7b4e
nit
pgherveou b4dad01
added comments
fbdd9fc
commented code so that estending memory will not cost any gas
cb8b8ce
added TODO in host.rs instruction for extcodecopy gas macro
ee7c237
unused vars in macros.rs
b769010
refcount = 1 for evm
pgherveou 0abfc74
fix
pgherveou 6060eb4
fix
pgherveou 2007fb5
add one more assert
pgherveou f219e06
nit
pgherveou 33e9216
Remove refcount and owner for EVM CodeInfo
pgherveou f75403a
rm unused
pgherveou d26d8ac
origin should be held not caller
pgherveou cc8cef4
Merge branch 'master' into pg/revm
pgherveou 92e36a7
added trace logging in EVM interpreter loop
5175667
Update from github-actions[bot] running command 'prdoc --audience run…
github-actions[bot] 5780c19
fix ci
256b802
fmt
59ccd47
fix ci
9cd90ca
Update from github-actions[bot] running command 'bench --runtime dev …
github-actions[bot] d647759
fix ci
63290b9
dummy chang
d22ac45
nit
8bd37b6
fix ci
9d40097
changed prdoc to major
e405e18
rollback refcount removals
pgherveou 8b1669f
Update Cargo.toml
pgherveou 4f86e9b
Update prdoc/pr_9285.prdoc
pgherveou 315ae52
Update substrate/frame/revive/src/call_builder.rs
pgherveou 3598d6f
Update substrate/frame/revive/src/benchmarking.rs
pgherveou 3272e99
rm charge_evm_init_cost
pgherveou e2242a2
fix
pgherveou 7fa6421
rm - 1
pgherveou ae647b6
restore legacy behaviour
pgherveou e374a38
fix selfdestruct in exec.rs and host.rs
38602a5
format fixtures
xermicus 1a073b6
update
pgherveou 2765b13
Merge remote-tracking branch 'origin/pg/revm' into rve/revm-instructi…
11fbe30
using U256Converter trait
f0b629d
fixed gas charge in host sstore and tstore
9632db8
review comments
7de00cc
remove prdoc
22d1b3c
Merge remote-tracking branch 'origin/rve/revm-instructions-bitwise' i…
9c4e85c
undo changes to weights
4bd37a2
fixed copy paste mistake
fb8ca75
fixed review comment
5a6b99a
remove allow deadcode in utility.rs
6d01a53
format
6d0181e
fixed copy paste mistake
04001a2
fixed review comment
f68a53d
remove allow deadcode in utility.rs
4fc21b4
Merge branch 'rve/revm-instructions-bitwise' into rve/revm2
833b847
fix ci
d137f91
fix ci
51ba0f7
trigger ci
4edc46e
format
7afade1
fix compilation issue
b48e5e1
Merge remote-tracking branch 'origin/rve/revm-instructions-bitwise' i…
d1808d6
added test for invalid jumpdest
a064b21
review comments
4283724
removed formatting diff
199516c
Merge remote-tracking branch 'origin/rve/revm-instructions-bitwise' i…
09d7a3a
fix unused variable
29765fc
fix unused variable
f10a0b2
Merge branch 'rve/revm-instructions-bitwise' into rve/revm2
fcae11f
fixed condition import
fdff8f2
change imports
d4b67b5
format
c05c012
Merge remote-tracking branch 'origin/master' into rve/revm2
02de532
fixed run_plain in evm.rs and added trace
8e57208
clean up
1835a44
undo formatting change
ac7562a
added newline
ea3782e
remove function that came out of nowhere
aba3351
undo pointless change
568a217
Merge remote-tracking branch 'origin/master' into rve/revm2
25161bf
.
1bed5a8
Update from github-actions[bot] running command 'prdoc --audience run…
github-actions[bot] 4113549
remove some crates from prdoc
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| title: added trace logging in EVM interpreter loop | ||
| doc: | ||
| - audience: Runtime Dev | ||
| description: |- | ||
| Added trace logging for each instruction to evm::run function. | ||
| solves https://github.com/paritytech/polkadot-sdk/issues/9575 | ||
| crates: | ||
| - name: pallet-revive | ||
| bump: patch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.