Re: [Patch] Losing many samples when profiling multiple JVMs

William Cohen <[email protected]>
Newsgroups gmane.linux.oprofile
Message-ID <[email protected]>
On 07/15/2015 11:28 AM, William Cohen wrote:
> On 07/10/2015 03:00 PM, 大平怜 wrote:
>> Hello,
>>
>>> Thanks for the addition to the test for ppc. Does that work for both 32-bit and 64-bit ppc compilation?
>>
>> It should work, but I have only a 64-bit little-endian ppc machine,
>> which does not support 32-bit binaries.  I don't have access to
>> a big-endian ppc machine, which supports both 32 and 64 bits.
>>
>>> Attached is a revised version of the patch.  Could you give that a try?
>>
>> The revised patch works well with the test case and with the Java application
>> in which I originally found this problem.  Thanks!
>>
>>
>> Rei Odaira
> 
> Hi,
> 
> I have tweaked the test a little and checked it into the upstream oprofile-tests git repoository. It seems to work fine on x86-64. I have a rhel7 ppc64 machine setup that should be big endian and give it a try. 
> 
> -Will

Hi,

I tried the test on rhel7 ppc64 and it doesn't work because of the way that calls operates.  The ppc64 generated code is treating the address returned by 
initialize_anon_func as a pointer to a descriptor rather than the address that the branch should branch to.  The first 3 double word in the generated anon_func are used as a descriptor and the branch goes off to the wrong location (https://refspecs.linuxfoundation.org/ELF/ppc64/PPC-elf64abi-1.9.html#FUNC-DES)

Is this code working on ppc64le? How is the code being compiled on your machine? Or does it have a similar problem?  Any suggestions on how to best address this?

-Will

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
oprofile-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oprofile-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.