From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-4.1 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 4CA8E20248 for ; Mon, 11 Mar 2019 03:00:31 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:references :mime-version:content-type:in-reply-to; q=dns; s=default; b=aPwf 4RIxbPos7mlOcSBnakLSm90PGfnMRrnaxBCtix1wipY4w3sWiDpOcGv88ltd/dLY eofXfNXh+JYGDsEdQ4V/GffvPWgMoQEQQvhacKK9nu8VyfR0k6khTe3A8mWKzfqM xw/IRGee40idKmOZeDKOqHgoaTSBIdpsipRdZ7U= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:references :mime-version:content-type:in-reply-to; s=default; bh=k6WduHo+3r FrhHIKxxaLMQyjO+M=; b=X0l74GZAbmUBIi73CLzn24P5twCq5mJWmxxS9ScurT XiLe0F6zIHxHdcRODvo8GdLXot6fNqIRPbzLnmQSCRDIYNMVR5mY5fkEcGjqaHB2 wKJIl8Zy0x+mMqGtzCnIibZ4lDuwMi8k9NPGSHCykMESByUSK8qE/32zL8VKnPkE U= Received: (qmail 110428 invoked by alias); 11 Mar 2019 03:00:28 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 110305 invoked by uid 89); 11 Mar 2019 03:00:20 -0000 Authentication-Results: sourceware.org; auth=none X-HELO: smtp2200-217.mail.aliyun.com X-Alimail-AntiSpam:AC=CONTINUE;BC=0.0806366|-1;CH=green;DM=CONTINUE|CONTINUE|true|0.345823-0.199252-0.454925;FP=0|0|0|0|0|-1|-1|-1;HT=e02c03301;MF=han_mao@c-sky.com;NM=1;PH=DS;RN=1;RT=1;SR=0;TI=SMTPD_---.E6aa-hE_1552273200; Date: Mon, 11 Mar 2019 10:59:12 +0800 From: Mao Han To: libc-alpha@sourceware.org Subject: [COMMITTED][PATCH 1/4] C-SKY: fix sigcontext miss match Message-ID: <20190311025909.GA999@vmh-VirtualBox> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) On Thu, Mar 07, 2019 at 09:34:03AM +0800, Mao Han wrote: > C-SKY defines SIGCONTEXT as siginfo_t *_si, struct ucontext_t * for > __profil_counter. ucontext_t get an extra __mask field which is miss > match with the struct sigcontext from linux kernel. The time value > from gprof report will be always zero without this patch. This > patch also fix the registers sequence in register-dump.h. > > * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change. > * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field > in mcontext_t > --- > ChangeLog | 6 ++ > sysdeps/unix/sysv/linux/csky/register-dump.h | 127 +++++++++++++-------------- > sysdeps/unix/sysv/linux/csky/sys/ucontext.h | 1 - > 3 files changed, 68 insertions(+), 66 deletions(-) > > diff --git a/ChangeLog b/ChangeLog > index 53c5d2f..dba3547 100644 Committed. Tested on C-SKY.