xref: /OK3568_Linux_fs/kernel/tools/perf/Documentation/jit-interface.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyunperf supports a simple JIT interface to resolve symbols for dynamic code generated
2*4882a593Smuzhiyunby a JIT.
3*4882a593Smuzhiyun
4*4882a593SmuzhiyunThe JIT has to write a /tmp/perf-%d.map  (%d = pid of process) file
5*4882a593Smuzhiyun
6*4882a593SmuzhiyunThis is a text file.
7*4882a593Smuzhiyun
8*4882a593SmuzhiyunEach line has the following format, fields separated with spaces:
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunSTART SIZE symbolname
11*4882a593Smuzhiyun
12*4882a593SmuzhiyunSTART and SIZE are hex numbers without 0x.
13*4882a593Smuzhiyunsymbolname is the rest of the line, so it could contain special characters.
14*4882a593Smuzhiyun
15*4882a593SmuzhiyunThe ownership of the file has to match the process.
16