[RFC] [PATCH] [v2] AArch64 - Add parameter to __mount routine and register signal handler for profiling.

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[RFC] [PATCH] [v2] AArch64 - Add parameter to __mount routine and register signal handler for profiling.

Venkataramanan Kumar-3
Hi Maintainers,

This is version 2 patch that supports profiling in AArch64.
 Ref: https://sourceware.org/ml/libc-ports/2013-09/msg00090.html

This patch in addition to the previous patch, includes changes needed
to register signal handler "profil_counter " for profiling in AArch64.

For execution time profiling for gprof, we need to register the
"profile_counter" signal handler in the same way as other port does in
"sigcontextinfo.h".

I have started cross tests in ARMV8 foundation model.

2013-09-20  Venkataramanan Kumar  <[hidden email]>

        * sysdeps/aarch64/machine-gmon.h (__mcount): Accept parameter and
          pass it to mcount_internal.
       * sysdeps/unix/sysv/linux/sigcontextinfo.h: New file

regards,
Venkat

glibc.gprof.txt (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [RFC] [PATCH] [v2] AArch64 - Add parameter to __mount routine and register signal handler for profiling.

Marcus
Hi Venkat

On 20 September 2013 07:11, Venkataramanan Kumar
<[hidden email]> wrote:

> 2013-09-20  Venkataramanan Kumar  <[hidden email]>
>
>         * sysdeps/aarch64/machine-gmon.h (__mcount): Accept parameter and
>           pass it to mcount_internal.
>        * sysdeps/unix/sysv/linux/sigcontextinfo.h: New file

These two changes are not related and should be submitted as separate patches.

diff --git a/ports/sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h
b/ports/sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h
new file mode 100644
index 0000000..f660d1e
--- /dev/null
+++ b/ports/sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h
@@ -0,0 +1,36 @@
+/* AArch64 definitions for profiling support.

The description line could be more accurate.  These definitions all
relate to the signal handler call convention.


Cheers
/Marcus