From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3BA9AC433E0 for ; Fri, 15 May 2020 07:45:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2110F206F4 for ; Fri, 15 May 2020 07:45:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726831AbgEOHpP (ORCPT ); Fri, 15 May 2020 03:45:15 -0400 Received: from foss.arm.com ([217.140.110.172]:50554 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726622AbgEOHpO (ORCPT ); Fri, 15 May 2020 03:45:14 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 68E841042; Fri, 15 May 2020 00:45:14 -0700 (PDT) Received: from nicgas01-03-arm-vm (nicgas01-03-arm-vm.shanghai.arm.com [10.169.138.43]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BDBE23F68F; Fri, 15 May 2020 00:45:11 -0700 (PDT) References: <20200427061520.24905-1-nick.gasson@arm.com> <20200427103505.GA1476763@krava> <85lflu7v4o.fsf@arm.com> <20200514132337.GM5583@kernel.org> User-agent: mu4e 1.4.5; emacs 27.0.91 From: Nick Gasson To: Ian Rogers Cc: Stephane Eranian , Jiri Olsa , Alexander Shishkin , Ingo Molnar , Mark Rutland , Namhyung Kim , Peter Zijlstra , "linux-kernel@vger.kernel.org" , "Arnaldo Carvalho de Melo" Subject: Re: [PATCH 0/3] perf jvmti: Various fixes to JVMTI agent In-reply-to: Date: Fri, 15 May 2020 15:45:09 +0800 Message-ID: <858sht3am2.fsf@arm.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/15/20 06:41 am, Ian Rogers wrote: > > If you are looking at this code I believe there is a bug in that the > loop handling jvmtiCompiledMethodLoadInlineRecord is writing out the > entire line number table before a pc and not just the line number > table at the pc. This loop in do_get_line_numbers: > > if (loc_tab[i].start_location < bci) { > tab[lines].pc = (unsigned long)pc; > tab[lines].line_number = loc_tab[i].line_number; > tab[lines].discrim = 0; /* not yet used */ > tab[lines].methodID = m; > lines++; > } else { > > It could possibly make sense if it were iterating over the inline data > in the jvmtiCompiledMethodLoadInlineRecord rather than the line number > table. > Fixing this is toward the end of a list of things I need to look at. > OK sure, I'll have a look at this. Thanks for the reviews. -- Thanks, Nick