Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp27088ybl; Tue, 7 Jan 2020 01:24:48 -0800 (PST) X-Google-Smtp-Source: APXvYqyLjrC15b/3+yYud+KWwPiZ8byHhOxWdQOduJ1iFB/xvlEIyamtp0G+gT5J6SvsSZslUkoo X-Received: by 2002:a9d:4c94:: with SMTP id m20mr121167995otf.341.1578389088873; Tue, 07 Jan 2020 01:24:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578389088; cv=none; d=google.com; s=arc-20160816; b=hxcth8R+DtdrgBAJ8X2ALVdCc0QC4dunS/NuADbf/VZEwynyAuakTn7DEdh/8MJDAl KNCPHQlGXAXghjGLNUMRjHyiF3K045tz3mLdsuAZJsprogLRQF5VLmoV1zusCyqFdGMy gICdqZ8kaOWMuiH/MjvKMr7scfj8X9XsQLmyyba0DdINq6LaYC+MHtbl1Ekvq1BIZAGn tKeXmi+VB8ZPWwmYBlzaNeNqnoMsL/ks5P5y4hUl3m+01HXkUvuvBZjPuZPK1wIGq0KK 2lOGkwx7CGNfOYrOQ9tgtNc1VSUmrlt5VYSvceFUUZQnofY6CBvrGn8qG9WcHkwGqWJ/ v6Mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=xFQQE6kgeKNO6UlYOlui/VsGLZg0eOZacGJld0hOGcs=; b=MX7qks+BYh9KtDjYdIlIS7zcA7SHScrLBNbfsSB6EyhV2dH684MRIeEu1xUrLo+ihA b+GaW9sisj/qtgVFbjjNEa8APmovNzg529k4VbYdHRaNZLrCiIjEoTR55voIIdHEjmgl mxyleBxHT79rkVrNI4Qeg9cPIlogzke8AzQxVUxSfVQvooZFFDi5cDGWCtp7JFWvuxA7 t/WK1cVAcU8tOWl74p+VLomHuhj1FvFtsqKT1tlWGKytKX2UyyBOg68gE6asmrRvOFK7 uac6veBQYGqdMEjfEQa8UON8j/0rryFPS1sqEGhkZbvhtNK7PG8P1kQIPJqhJj2H9/G+ HkGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=xbWxsZpm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p11si37066283ota.300.2020.01.07.01.24.36; Tue, 07 Jan 2020 01:24:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=xbWxsZpm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727706AbgAGJX1 (ORCPT + 99 others); Tue, 7 Jan 2020 04:23:27 -0500 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:43591 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726327AbgAGJX1 (ORCPT ); Tue, 7 Jan 2020 04:23:27 -0500 Received: from pps.filterd (m0046037.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0079HUtg001703; Tue, 7 Jan 2020 10:22:53 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=message-id : subject : from : to : cc : date : in-reply-to : references : content-type : mime-version : content-transfer-encoding; s=STMicroelectronics; bh=xFQQE6kgeKNO6UlYOlui/VsGLZg0eOZacGJld0hOGcs=; b=xbWxsZpm4thxEojwsKJ0Eqn9TdnF1G3Kigv0zNNlo7HHz17GSXo3BTHc877V37dlRcnU g2K6pHj4YsYGzzPn1MVfJmMDUrH6p4sKD30bC/XhPX41O5CEKyqa8jrVbGwb1thYClK/ U24hfn/QlhSZGYwkuUyTMBHI8dfIclL4FrW+b3Rh39r5HYTbSmFhmBYK9qOaGytuyu9X VB8iRS0/TenxLsIn1gQj1y6VxjejRzgA4xUGEuzDRNg6knd+NtTy4nIdO71gd2kXfgGO pZy9ca4Kxd8MAfskWEn4QImFVCTRqqxGWrrHYwMES83YW9baXvt1DUdrvPFMgyXhVIeE fw== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2xakuqn095-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 07 Jan 2020 10:22:53 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 5D81F100039; Tue, 7 Jan 2020 10:22:47 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag5node3.st.com [10.75.127.15]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id E63122A790F; Tue, 7 Jan 2020 10:22:46 +0100 (CET) Received: from lshz10676 (10.75.127.45) by SFHDAG5NODE3.st.com (10.75.127.15) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 7 Jan 2020 10:22:41 +0100 Message-ID: Subject: Re: [PATCH] tracing: Fix printing ptrs in preempt/irq enable/disable events From: Antonio Borneo To: Steven Rostedt , Joel Fernandes CC: Ingo Molnar , , Date: Tue, 7 Jan 2020 10:21:55 +0100 In-Reply-To: <20191223151301.20be63f7@gandalf.local.home> References: <20191127154428.191095-1-antonio.borneo@st.com> <20191204092115.30ef75c9@gandalf.local.home> <20191221234741.GA116648@google.com> <20191223151301.20be63f7@gandalf.local.home> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.45] X-ClientProxiedBy: SFHDAG5NODE3.st.com (10.75.127.15) To SFHDAG5NODE3.st.com (10.75.127.15) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,18.0.572 definitions=2020-01-07_02:2020-01-06,2020-01-07 signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2019-12-23 at 15:13 -0500, Steven Rostedt wrote: > On Sat, 21 Dec 2019 18:47:41 -0500 > Joel Fernandes wrote: > > > On Wed, Dec 04, 2019 at 09:21:15AM -0500, Steven Rostedt wrote: > > > Joel, > > > > > > Any comments on this patch? > > > > Steve, it looks like this issue happens with trace-cmd not knowing what > > _stext is. If I do cat trace_pipe , then I don't see the issue as _stext is > > looked up correctly but the reporter of the bug is using trace-cmd. Is there > > a way to solve this within trace-cmd? Not knowing much about trace-cmd > > internals, I will have to defer to you on this though.. > > > > Other than this, I need to make the offset to _stext as s32 instead of u32 > > type so that the problem of the symbol location being before _stext does not > > cause overflow. > > > > Lastly, I am not super convinced that we need to store the full pointer just > > to handle a case where the offset of the symbol might be more than +-2G from > > _stext. Once we see such issue, then we can handle it. But right now the size > > of the trace buffer is utilized better by just storing the offset IMHO. > > > > Does this fix it for you? > > -- Steve > Steve, this patch fixes the issue for me, thanks! Tested-by: Antonio Borneo There are other cases where the trace buffer is under stress, e.g. during function tracing. Would it be useful to only store the offset in such cases too? Regards, Antonio