Failed to decode profile dump with llvm-prof

Hi, all

  I'm using profiling mechanism provided by LLVM.
What I did is,

$ ./${LLVM_SRC}/utils/profile.pl hello.bc

  But it turned out that llvm-prof failed to interpret
the profile dump, llvm-prof gave me the error message
below.

llvm-prof: Unknown packet type #5!

  Any idea?

Regards,
chenwj

陳韋任 <chenwj <at> iis.sinica.edu.tw> writes:

Hi, all

  I'm using profiling mechanism provided by LLVM.
What I did is,

$ ./${LLVM_SRC}/utils/profile.pl hello.bc

  But it turned out that llvm-prof failed to interpret
the profile dump, llvm-prof gave me the error message
below.

llvm-prof: Unknown packet type #5!

  Any idea?

Regards,
chenwj

Hi guys

I am interesting in using the LLVM path profiling tool. Is this problem resolved
or not?

-Michael

I’m having the same problem. Does anyone know what’s causing this?

Kind regards,

Wim

What's your profiling procedure? I can only guess llvm-prof does not
recognize the profiling data.

Regards,
chenwj

Turns out I was using opt -profile-loader instead of opt -path-profile-loader. Switching to the path profile loader fixed the problem.

Wim

Can u message me the detailed steps for overcoming this error.I also have the
same error.
where to add this path-profile-loader

Wim Vander schelden-2 wrote:

Can u message me the detailed steps for overcoming this error.I also have the
same error.
where to add this path-profile-loader

Wim Vander schelden-2 wrote: