• ssanfilippo's avatar
    Portable Linux perf map formatting. · 15defcc4
    ssanfilippo authored
    Linux perf expects hex literals without a leading 0x, while some
    implementations of printf might prepend one when using the %p format
    for pointers, leading to wrongly formatted JIT symbols maps.
    
    Instead, use V8PRIxPTR format string and cast pointer to uintpr_t,
    since we have control over the exact output format of integers.
    
    LOG=N
    
    Review URL: https://codereview.chromium.org/1885033005
    
    Cr-Commit-Position: refs/heads/master@{#35571}
    15defcc4
log.cc 56.7 KB