This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/18707] New: [aarch64] libc profiling (with --enable-profile) is broken


https://sourceware.org/bugzilla/show_bug.cgi?id=18707

            Bug ID: 18707
           Summary: [aarch64] libc profiling (with --enable-profile) is
                    broken
           Product: glibc
           Version: 2.21
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: nszabolcs at gmail dot com
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---

The CALL_MCOUNT macro (sysdeps/aarch64/sysdep.h) used in glibc internal asm
files does not save/restore argument registers of the instrumented function.

(In the aarch64 profiling ABI the compiler knows about the inserted mcount call
and does the necessary register spills, but that does not happen in the asm
functions.)

Only broken when the libc itself is profiled.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]