Could you please apply the patch below and provide its output to help
me debug:

--- a/tools/ll_prof.py
+++ b/tools/ll_prof.py
@@ -634,6 +634,8 @@ class TraceReader(object):
     # Read null-padded filename.
     filename = self.trace[offset + self.header_size +
ctypes.sizeof(mmap_info):
                           offset + header.size].rstrip(chr(0))
+    if chr(0) in filename:
+      print filename, " ".join("%02x" % ord(x) for x in filename)
     mmap_info.filename = filename
     return mmap_info

On Jun 27, 6:45 am, tatwai chong <[email protected]> wrote:
> 1. Profile Richards of v8 benchmark:
> $ perf record -R -e cycles -c 10000 -f ../shell_g run.js --ll-prof
> Richards: 8296
> ----
> Score (version 6): 8296
> [ perf record: Woken up 46 times to write data ]
> [ perf record: Captured and wrote 11.464 MB perf.data (~500863
> samples) ]
>
> 2. Use ll_prof.py to process collected data
> $ ../tools/ll_prof.py --disasm-top=10
>
> but ...
> V8 log: v8.log, v8.log.ll (no snapshot)
> Perf trace file: perf.data
> Generated code architecture: ia32
>
> Traceback (most recent call last):
>   File "../tools/ll_prof.py", line 902, in <module>
>     library_repo.Load(mmap_info, code_map, options)
>   File "../tools/ll_prof.py", line 695, in Load
>     if not os.path.exists(mmap_info.filename):
>   File "/usr/lib/python2.7/genericpath.py", line 18, in exists
>     os.stat(path)
> TypeError: must be encoded string without NULL bytes, not str
>
> Does anyone know what problem?
> Thanks.
>
> Regards,
> Tat-Wai

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to