gperftools support is missing

Bug #1091352 reported by Marcin Juszkiewicz
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro AArch64 cross-distro work
Fix Committed
Medium
Riku Voipio

Bug Description

http://code.google.com/p/gperftools/ lacks AArch64 support.

When tried to cross compile it tries to use x86 assembly.

Revision history for this message
Marcin Juszkiewicz (hrw) wrote :

I think that atomics operations like src/base/atomics-internal-*.h need to be written for AArch64.

Revision history for this message
Steve McIntyre (steve-mcintyre) wrote :

Most of the asm seems to be implementing atomics for various platforms. See src/base/atomicops.h:

#if defined(__MACH__) && defined(__APPLE__)
#include "base/atomicops-internals-macosx.h"
#elif defined(__GNUC__) && defined(ARMV6)
#include "base/atomicops-internals-arm-v6plus.h"
#elif defined(ARMV3)
#include "base/atomicops-internals-arm-generic.h"
#elif defined(_WIN32)
#include "base/atomicops-internals-windows.h"
#elif defined(__GNUC__) && (defined(__i386) || defined(__x86_64__))
#include "base/atomicops-internals-x86.h"
#elif defined(__linux__) && defined(__PPC__)
#include "base/atomicops-internals-linuxppc.h"
#else
// Assume x86 for now. If you need to support a new architecture and
// don't know how to implement atomic ops, you can probably get away
// with using pthreads, since atomicops is only used by spinlock.h/cc
//#error You need to implement atomic operations for this architecture
#include "base/atomicops-internals-x86.h"
#endif

I'd *expect* this to be reasonably easy to do by just using gcc builtins, but that'll need verifying

Revision history for this message
Anmar Oueja (anmar) wrote :

This bug will not block Owen from using 13.01 OpenEmbedded release.

Changed in linaro-aarch64:
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Riku Voipio (riku-voipio) wrote :

According to Koen, this is needed by mongodb.

Changed in linaro-aarch64:
status: Triaged → In Progress
importance: Low → Medium
assignee: nobody → Riku Voipio (riku-voipio)
Revision history for this message
Riku Voipio (riku-voipio) wrote :

I know have a patch that implements the gperftools atomics using gcc builtins , needs some testing, backporting to OE and submitting upstream.

Revision history for this message
Riku Voipio (riku-voipio) wrote :

There's more aarch64 porting needed than just atomics. For example, a code copy of:

https://code.google.com/p/linux-syscall-support/

Revision history for this message
Ilias Biris (ibiris) wrote : Re: [Bug 1091352] Re: gperftools support is missing

Right are you going to look into those as well? Or should I ask mwhudson
to chip in?

thanks,

Ilias

--
Ilias Biris - <email address hidden>
Technical Program Manager, Linaro
M: +358504839608, IRC: ibiris, Skype: ilias_biris
Linaro.org | Open source software for ARM SoCs

On 29 January 2014 14:51, Riku Voipio <email address hidden> wrote:

> There's more aarch64 porting needed than just atomics. For example, a
> code copy of:
>
> https://code.google.com/p/linux-syscall-support/
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1091352
>
> Title:
> gperftools support is missing
>
> Status in Linaro AArch64 cross-distro work:
> In Progress
>
> Bug description:
> http://code.google.com/p/gperftools/ lacks AArch64 support.
>
> When tried to cross compile it tries to use x86 assembly.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/linaro-aarch64/+bug/1091352/+subscriptions
>

Revision history for this message
Riku Voipio (riku-voipio) wrote :
Revision history for this message
Riku Voipio (riku-voipio) wrote :
Changed in linaro-aarch64:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.