From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755554AbdK2Q1n (ORCPT ); Wed, 29 Nov 2017 11:27:43 -0500 Received: from mail-db5eur01on0056.outbound.protection.outlook.com ([104.47.2.56]:12800 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752149AbdK2Q1l (ORCPT ); Wed, 29 Nov 2017 11:27:41 -0500 From: Ben Gainey To: "eranian@google.com" , "acme@kernel.org" CC: "linux-kernel@vger.kernel.org" , "peterz@infradead.org" , "jolsa@redhat.com" , "colin.king@canonical.com" , Kim Phillips , "tglx@linutronix.de" , "dvhart@infradead.org" , "namhyung@kernel.org" , "mingo@redhat.com" , "alexander.shishkin@linux.intel.com" Subject: Re: [PATCH 3/3] tools/perf/jvmti: generate correct debug information for inlined code Thread-Topic: [PATCH 3/3] tools/perf/jvmti: generate correct debug information for inlined code Thread-Index: AQHTY/GbEdLt2mtZkUumDqmBIo3PzaMiFdqAgAlG0YCAADlgAA== Date: Wed, 29 Nov 2017 16:27:37 +0000 Message-ID: <1511972856.3243.5.camel@arm.com> References: <20171122182541.d25599a3eb1ada3480d142fa@arm.com> <20171123152227.GG8789@kernel.org> In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Ben.Gainey@arm.com; x-originating-ip: [217.140.96.140] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;AM3PR08MB0069;6:u0tBomyYqoZDLzuJOgM9NsNyx3WKIq6144KjZ5m6/Qma9Z2x1TqkLcQDoYR14NxtIF0Ya+xXcNF1SucB+iTC/LHubEB0VeaE3Hh24XYBQ9D9IU6RQC2wxq+MhnOrxH3mA8u9zUKrYeltJ5RvXjaOR9SgUkb2L611ncZF8h68Vtm7zgAbp4YJV8g+vXPyP8syPBQ9AEoJB8uv5zmbYJSGCG+pzPpyiWaijXytNGBdpEPBgc5XQAM20ide0JVuXPhsDIAU8KiJW+U3iTmJwRcvSjkkIkKWHI36tJodr30mWLkIrrWr3iYGNeuaXH++8EQHBQk/rrEmICydx4ebWhfs4fP3krLHM5TH7N/nZlP8U58=;5:gPAaXwIwmdxY9dccL7CSpfUi5jWX4vEgfwl9jDLy00U4vhKQaTGUbP/CF/QsdCRGaikovUVzHk/s1PmG/mvCXmoOJZSDjfm4RNlvDkYAhhtblwK75VX0Ucbcp+VRgNbaL+Gbrhb+/sHTe8+88apTVTyrcjxmC5Sz7Q0ThLHcdV0=;24:pcu3D/AQJw6WGkgUWOs63x28M3BSa4ot0aR/IJcmoSHozKUMnTXgUeRjMKAGccdMYf+wJAd3UZhSu089iXJ6WJBV22DyvEnmnVKc0kzUyp0=;7:8ziJNajXuSDxseygAsGYmm7Py4T62IdpcX7QWgJq+njS+75zAmxYeeMepJdwGCpAjzomP1HUXJEql5/aX+JzwitfgtdD04l/bVb6pilreOFn/BZ9se1YHHplufDOW3N3GdNuAB17e46HdBUoJVGZUN1hVR2nq97jHqZ2KyR7zkv8dP/QrPLk1dDd5eRqBEJ93AZDBQAmSUvvks8zZ8+0Sq4ealimyYjp6HkICYJlPQ8hU7+0O2a+S46jlIj4rSnS x-ms-exchange-antispam-srfa-diagnostics: SSOS;SSOR; x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 1ce1c76d-9642-47be-1e2c-08d537461aa9 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(2017052603272);SRVR:AM3PR08MB0069; x-ms-traffictypediagnostic: AM3PR08MB0069: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(180628864354917); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040450)(2401047)(5005006)(8121501046)(3002001)(10201501046)(3231022)(93006095)(93001095)(6055026)(6041248)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123560025)(20161123564025)(20161123562025)(6072148)(201708071742011);SRVR:AM3PR08MB0069;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:AM3PR08MB0069; x-forefront-prvs: 05066DEDBB x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(6009001)(366004)(376002)(346002)(39860400002)(24454002)(40434004)(199003)(377424004)(189002)(6486002)(4001150100001)(6506006)(7416002)(25786009)(3660700001)(6512007)(36756003)(68736007)(189998001)(76176999)(4326008)(2950100002)(53936002)(50986999)(54356999)(72206003)(5890100001)(81156014)(478600001)(81166006)(6436002)(2501003)(8676002)(54906003)(103116003)(110136005)(316002)(97736004)(8936002)(229853002)(66066001)(5660300001)(3846002)(53546010)(101416001)(102836003)(5250100002)(3280700002)(99286004)(2906002)(305945005)(6116002)(7736002)(14454004)(6246003)(86362001)(105586002)(33646002)(106356001)(2900100001);DIR:OUT;SFP:1101;SCL:1;SRVR:AM3PR08MB0069;H:HE1PR0801MB1322.eurprd08.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1ce1c76d-9642-47be-1e2c-08d537461aa9 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Nov 2017 16:27:37.5916 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM3PR08MB0069 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by nfs id vATGRmDQ014897 On Wed, 2017-11-29 at 05:02 -0800, Stephane Eranian wrote: > On Thu, Nov 23, 2017 at 7:22 AM, Arnaldo Carvalho de Melo > wrote: > > > > Em Wed, Nov 22, 2017 at 06:25:41PM -0600, Kim Phillips escreveu: > > > From: Ben Gainey > > > @@ -405,7 +405,9 @@ jvmti_write_debug_info(void *agent, uint64_t > > > code, const char *file, > > > return -1; > > > } > > > > > > - flen = strlen(file) + 1; > > > + for (i = 0; i < nr_lines; ++i) { > > > + flen += strlen(file_names[i]) + 1; > > > + } > > > > > > Please follow the coding standard used in this file and in > > tools/perf, > > which is the kernel one. > > > > Thanks for providing instructions on how to reproduce the problem! > > > > Stephane, can you please Ack this? > > > > Trying to test this but do not see the source code from example, yet. Hi Stephane, sorry can you please clarify; were you expecting to see source embedded in the output from perf annotate, or are just missing the source for the reproducer, or something else? If it is the former, then there is no source in the output, only line numbers and filenames, but this is not a regression (that I am aware of) as it was not there before the patch either. > > > > > - Arnaldo > > IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.