Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3791549pxj; Tue, 15 Jun 2021 08:44:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmRQBirEzEbDt7ODjU7uc6Iw4gad2bhS5ZXhWH2oc2B8QkBsnirwnBubh1PpvAgjonbbcF X-Received: by 2002:a05:6402:419:: with SMTP id q25mr22507edv.331.1623771842121; Tue, 15 Jun 2021 08:44:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623771842; cv=none; d=google.com; s=arc-20160816; b=go9/DML+TfFdiFGtbu8c8LM1AJL98LJVdQ+7DmLs/wFBR+0JoyaZLUVRG5KTgzM05S hKceLnAKHKS1RTq7mlNxxfXWRuXr0fuDeXnWRkBOfD1mf1HQb4q4goI4STszd7iJ/q3l 0OMI8JUCK8CBJmW7IcnjCwV0Bi/v++LRUPVo8HO4u41ZHmCd4C70HxGyY9+3WMKAh/D/ 3UBePEBkJy4NAb03ACKnm38LT8cTP0kn715OvQhVIneNwF87mcg16rOjwjFL9xkDM7hW 4rUa+yefP8oYD8A6MxNef4LbfN6LNzeVtvqrLdXiVub5ubM9wG1LykSdHwqY9LdXDKOF PhPQ== 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=3yEoT072I6MOxjNG7YT4qxHaaxCVzQrNLMVgWw47rQ0=; b=Sgc4y91/OYW2dxAiBPAGB6T08WFKSV7+Hq6rDJLY8S8Y5UEabb3+Lr6c9XjAdAJkef AMbDuG/5lRxOtlcV3XSk1MPwX75DkUuSiNPb0iK8uG3f+YG+QsN/sEoVO7XCfem70m0j pmBt2jrP+d5agDpkG4QzdfDdfIFRPUjRfLD/4Geffa3TO71+pS3xxWhY1DbHYqEcWszG NMVh8U9Mg8f3rtUDstka3YG8iAYDD1tt1iYZoSYh9PJbPD0MsxV4kYAQcElUnsIVpQTs 3yBVPBCj0GhdWpyHfHI+FrNkrdOSdhJFABopiwS3d6iE9Dw/87ZOD1siW6XGZWmvUCq+ wZGg== 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 q1si15344279ejy.298.2021.06.15.08.43.38; Tue, 15 Jun 2021 08:44:02 -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 S231718AbhFOPog (ORCPT + 99 others); Tue, 15 Jun 2021 11:44:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:43362 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231274AbhFOPog (ORCPT ); Tue, 15 Jun 2021 11:44:36 -0400 Received: from oasis.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 C1D766145C; Tue, 15 Jun 2021 15:42:30 +0000 (UTC) Date: Tue, 15 Jun 2021 11:42:29 -0400 From: Steven Rostedt To: Mark-PK Tsai Cc: Matthias Brugger , Matt Helsley , Sami Tolvanen , , , , , Subject: Re: [PATCH v2] recordmcount: Correct st_shndx handling Message-ID: <20210615114229.3b1f2c5f@oasis.local.home> In-Reply-To: <20210615064720.21950-1-mark-pk.tsai@mediatek.com> References: <20210615064720.21950-1-mark-pk.tsai@mediatek.com> X-Mailer: Claws Mail 3.17.3 (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 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