Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3858933pxj; Tue, 15 Jun 2021 10:08:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztskF++76YfoTLilJyioPTcxfrKMWkbRXp6W/7k++d7JPYXnKvTThF9xbyMNHy2FiG8f7l X-Received: by 2002:aa7:c647:: with SMTP id z7mr615080edr.224.1623776903835; Tue, 15 Jun 2021 10:08:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623776903; cv=none; d=google.com; s=arc-20160816; b=QSd2zVyEnBI40FfNC3ZOHNWquHwPko1N+skDHWI2g+xTKzll2Pu/ZFO3p2wyCZbvPk wZW+aW5Cf1vcjZOhE87btU8uzDSCWNHdXtTK85PABz/FSBqNB+KH18n1egAXOqctjOHm BghdX20DcNzPD03EzUIpxPFYl88dg8xgqleO10nFJTCd6uNFtAkt6SDIKqvSRjARKTkt s7qIx0uBhoIMVlxDHZEWAxReH/b8VCsHBY3C2M33g9uQc5Sm3twjieOCUMibCoNu1347 JO8btbJqYyY6rZS2UlOfJQ8Tl5S9awePszM/QMsxf1vOwBufZsflku4KUMO/cg2I4kpc Hs1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=TMFnkjuDKddEbcy6HggMsYRVE3rmKGRJb0gCORAy+og=; b=P8D2Sz6UMnxuD25GMxmub7VSa9R12VoAU1KhZO2ChDeFb2jZ+p6SbGsV1A0q/SrS7U 6EoPMAXD/931ainQWsm6CnMBLXEOz2fjpZdisFMcrr2nBvhNr2H3We3Yq/n3HKChu6z0 oV4PvFwQZ/dkA1XVFX/4XKfTNdenUKq10jfQx6MreR5060oSYGD/WvlA9mwOohX6nZLy 1WzehoEv7mnLGYiSunx2t/51sMOm9Vv9zPH+D54b8tCaCsZwZnaQAoxaKSCGzV1Mr3AC ZMT4TqGwUr1O6BMPwcBMQxS/JZmozIrl9dXyHGAC8CDQRvOWYEixy+6nPbpwl4Cg6VGY 9b3g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cf26si15205694edb.316.2021.06.15.10.07.58; Tue, 15 Jun 2021 10:08:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230321AbhFORJK (ORCPT + 99 others); Tue, 15 Jun 2021 13:09:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:47076 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230179AbhFORJJ (ORCPT ); Tue, 15 Jun 2021 13:09:09 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7E05B6143D; Tue, 15 Jun 2021 17:07:04 +0000 (UTC) Date: Tue, 15 Jun 2021 13:07:02 -0400 From: Steven Rostedt To: Mark-PK Tsai Cc: , , , , , , , Subject: Re: [PATCH v2] recordmcount: Correct st_shndx handling Message-ID: <20210615130702.0292284e@gandalf.local.home> In-Reply-To: <20210615163245.26164-1-mark-pk.tsai@mediatek.com> References: <20210615114229.3b1f2c5f@oasis.local.home> <20210615163245.26164-1-mark-pk.tsai@mediatek.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 16 Jun 2021 00:32:45 +0800 Mark-PK Tsai wrote: > > On Tue, 15 Jun 2021 14:47:20 +0800 > > Mark-PK Tsai wrote: > > > > > One should only use st_shndx when >SHN_UNDEF and > > SHN_XINDEX, then use .symtab_shndx. Otherwise use 0. > > > > > > This handles the case: st_shndx >= SHN_LORESERVE && st_shndx != SHN_XINDEX. > > > > > > Reported-by: Mark-PK Tsai > > > Signed-off-by: Peter Zijlstra (Intel) > > > Tested-by: Mark-PK Tsai > > > Signed-off-by: Mark-PK Tsai > > > > Please explain the two signed-off-by's above. If you are just tweaking > > Peter's original patch, please add at the start: > > > > From: Peter Zijlstra (Intel) > > > > And then just above your signed off by, add what you changed: > > > > Tested-by: Mark-PK Tsai > > [ Changed something ] > > Signed-off-by: Mark-PK Tsai > > > > But state what you changed. > > > > Thanks! > > > > -- Steve > > Sorry for messing up. No problem. It's a learning process. > I've fixed it in v3. Thanks, -- Steve