From patchwork Mon Sep 23 05:44:30 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Venkataramanan Kumar X-Patchwork-Id: 20527 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f200.google.com (mail-vc0-f200.google.com [209.85.220.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id EFB00246ED for ; Mon, 23 Sep 2013 05:44:32 +0000 (UTC) Received: by mail-vc0-f200.google.com with SMTP id hf12sf2698756vcb.7 for ; Sun, 22 Sep 2013 22:44:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:mime-version:date:message-id :subject:from:to:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe:content-type; bh=VfsBIjpsEvKuA1wUpDoXh4syIXUubOjy712qpVO+jwU=; b=jQggn8kyIab/x0LYMwsJXUDfJ20AXX1bCNiIbDcozmyKp0sJB4TaX4/gYCHFGWhfYV baUIYiZmNpO56bmDR6WP+Vw7Qqe0K80rsCVPJiA8JYRCseXgesrhOj6RuhnFyCKvui9Z NNgBH9wNdHpAAaGMiwX/7SOdNz6VClZEkYfKhb36u2eiGgnZGm1oI+ZllQqvXxVZU2P3 v3Ihfef59M0l+3uPqbpKSNp0+q7ms3fUgm2jGG99xwg5+caFEbYauSr3Zs8wODbTRbd2 kbi6aitwH13ExNIkctAbARXT4vOAGjbQENOKpVFFJX+x1AZQZAR7MOnJRB+yp+YjKS0B kLEw== X-Gm-Message-State: ALoCoQlB8T+PMcgG8mIueCeCrxtARwMlvAgUO4na8jGsthPaemBYBtMWSiRYgIU/wzaPp/IPM6WG X-Received: by 10.224.93.19 with SMTP id t19mr9508534qam.3.1379915072106; Sun, 22 Sep 2013 22:44:32 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.3.169 with SMTP id d9ls1016700qed.61.gmail; Sun, 22 Sep 2013 22:44:32 -0700 (PDT) X-Received: by 10.58.161.116 with SMTP id xr20mr20195515veb.2.1379915072028; Sun, 22 Sep 2013 22:44:32 -0700 (PDT) Received: from mail-ve0-f170.google.com (mail-ve0-f170.google.com [209.85.128.170]) by mx.google.com with ESMTPS id fb4si6276412veb.50.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 22 Sep 2013 22:44:32 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.170 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.170; Received: by mail-ve0-f170.google.com with SMTP id c14so2081788vea.1 for ; Sun, 22 Sep 2013 22:44:31 -0700 (PDT) X-Received: by 10.221.64.17 with SMTP id xg17mr20372820vcb.5.1379915071917; Sun, 22 Sep 2013 22:44:31 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.174.196 with SMTP id u4csp140660vcz; Sun, 22 Sep 2013 22:44:31 -0700 (PDT) X-Received: by 10.49.134.102 with SMTP id pj6mr20904033qeb.49.1379915071095; Sun, 22 Sep 2013 22:44:31 -0700 (PDT) Received: from mail-qa0-f46.google.com (mail-qa0-f46.google.com [209.85.216.46]) by mx.google.com with ESMTPS id m9si8317574qaz.9.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 22 Sep 2013 22:44:31 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.216.46 is neither permitted nor denied by best guess record for domain of venkataramanan.kumar@linaro.org) client-ip=209.85.216.46; Received: by mail-qa0-f46.google.com with SMTP id j7so1205936qaq.12 for ; Sun, 22 Sep 2013 22:44:30 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.224.152.6 with SMTP id e6mr21180606qaw.56.1379915070688; Sun, 22 Sep 2013 22:44:30 -0700 (PDT) Received: by 10.140.86.47 with HTTP; Sun, 22 Sep 2013 22:44:30 -0700 (PDT) Date: Mon, 23 Sep 2013 11:14:30 +0530 Message-ID: Subject: [PATCH] [AARCH64] - Add signal handler definitions for profiling. From: Venkataramanan Kumar To: Marcus Shawcroft , libc-ports@sourceware.org, Patch Tracking X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: venkataramanan.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.170 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Hi Marcus, As per your comments in https://sourceware.org/ml/libc-ports/2013-09/msg00114.html, I have separated the patch that adds signal handler definitions for profiling. Cross tested with glibc testsuites on ARM V8 foundation model, with no regressions. Also please let me know, "_mcount" patch in https://sourceware.org/ml/libc-ports/2013-09/msg00090.html is good to go. Changelog: 2013-09-23 Venkataramanan Kumar * sysdeps/unix/sysv/linux/sigcontextinfo.h: New file if they are OK, can someone please commit it on my behalf. regards, Venkat. 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 signal handling calling conventions. + Copyright (C) 1996-2013 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + . */ + +#include +#include "kernel-features.h" + +#define SIGCONTEXT siginfo_t *_si, struct ucontext * +#define GET_PC(ctx) ((void *) (ctx)->uc_mcontext.pc) + +/* There is no reliable way to get the sigcontext unless we use a + three-argument signal handler. */ +#define __sigaction(sig, act, oact) ({ \ + (act)->sa_flags |= SA_SIGINFO; \ + (__sigaction) (sig, act, oact); \ +}) + +#define sigaction(sig, act, oact) ({ \ + (act)->sa_flags |= SA_SIGINFO; \ + (sigaction) (sig, act, oact); \ +}) +