Merge pull request #5637 from Tilka/symbols

JitCache: use SymbolDB names as JIT block names
This commit is contained in:
Tilka 2017-06-18 14:59:38 +01:00 committed by GitHub
commit 09457d3a42
2 changed files with 9 additions and 3 deletions

View File

@ -22,6 +22,7 @@
#include "Core/ConfigManager.h"
#include "Core/Core.h"
#include "Core/PowerPC/JitCommon/JitBase.h"
#include "Core/PowerPC/PPCSymbolDB.h"
#include "Core/PowerPC/PowerPC.h"
#ifdef _WIN32
@ -131,7 +132,12 @@ void JitBaseBlockCache::FinalizeBlock(JitBlock& block, bool block_link,
LinkBlock(block);
}
JitRegister::Register(block.checkedEntry, block.codeSize, "JIT_PPC_%08x", block.physicalAddress);
if (Symbol* symbol = g_symbolDB.GetSymbolFromAddr(block.effectiveAddress))
JitRegister::Register(block.checkedEntry, block.codeSize, "JIT_PPC_%s_%08x",
symbol->function_name.c_str(), block.physicalAddress);
else
JitRegister::Register(block.checkedEntry, block.codeSize, "JIT_PPC_%08x",
block.physicalAddress);
}
JitBlock* JitBaseBlockCache::GetBlockFromStartAddress(u32 addr, u32 msr)

View File

@ -9,8 +9,8 @@
# kernel.yama.ptrace_scope = 0
#
# Example usage:
# $ dolphin-emu -P /tmp -b -e $game
# $ perf top -p $(pidof dolphin-emu) --objdump ./Tools/perf-disassemble.sh
# $ dolphin-emu -C Dolphin.Core.PerfMapDir=/tmp -b -e $game
# $ perf top -p $(pidof dolphin-emu) --objdump ./Tools/perf-disassemble.sh -M intel
flavor=att
raw=r