Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp886482ybp; Fri, 11 Oct 2019 06:02:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqyPYNzFA0IP+u4C/Nvnb/HJMcBgnbmG4wXmtu0sZawqdiHOzu+kJ8NI3dDkf+Dp5MX+Z5j6 X-Received: by 2002:a17:906:27c5:: with SMTP id k5mr13447356ejc.173.1570798965117; Fri, 11 Oct 2019 06:02:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570798965; cv=none; d=google.com; s=arc-20160816; b=oE5iuIZfjTts26t5b5ihhFx9SKfI8F2IwLFQQvkVkSkDKdz6jG1k5it6Z1j5KaP6j6 CDpFot6YUgBs0PNoUaS1xX/0+YWwnCc8NWMuYJZ8hpaJUo+paqKblf0av6daeO3gKTJe AWWEu1AwqVvVkXt8n+aIt80UipcadPDJfUD+lUA3VfTc1i3n2NuzUV7Oje4A7ROsAmIT GKdd1zfTt13Ov2Wc4jas2Es7Q8CmtTfpb3aa4GIh816Kb8NGSR96gM15LDJcnCnGkRAO g/+qbInqCYGjFGpu8G1O0vomVZc+ocCqyI9KlwjLaODUjG4pmZdFB+AbBUXno2wLo1EE 2I5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=YCbZq/hUyP5r2jjZatlAcl9+75dsbkKkMGSPwgSLeag=; b=N2TYloHhhRmRmKuC6+wLicRhGYiAoqMZ+WihmYuK1BrWlA8mIVk0bnEaU80owQ+Zpx 3hN0KNH/y22hrcEw2JHZa6TAJwCrE2EdfpHrq7huy3t40trcIr/Y1f2s0Ge9FJ4kDYo+ 4R/mhPpxPBdd9+7ItbwIUeYZlpXHoQjXCxlvEJDMM7uQvD3WryfF4t5Sw4zkWHF6WFzp tBEXdNLNrNpFZMGK8vLVtA7MibtuKwxnVZbqtR3JMJhU9Lwk9MrojvQKPXtyZtgSaBXR Yugro1op89Bb4OO84mMt0518OuCfwfGCwa2shtX4dJN6UVW7mokL70x7R+hBqO3xgTdo 3dEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linbit-com.20150623.gappssmtp.com header.s=20150623 header.b=xKc0p3VV; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r8si4810300edm.158.2019.10.11.06.02.20; Fri, 11 Oct 2019 06:02:45 -0700 (PDT) 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=@linbit-com.20150623.gappssmtp.com header.s=20150623 header.b=xKc0p3VV; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728111AbfJKNCH (ORCPT + 99 others); Fri, 11 Oct 2019 09:02:07 -0400 Received: from mail-io1-f68.google.com ([209.85.166.68]:38798 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728056AbfJKNCH (ORCPT ); Fri, 11 Oct 2019 09:02:07 -0400 Received: by mail-io1-f68.google.com with SMTP id u8so21291983iom.5 for ; Fri, 11 Oct 2019 06:02:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linbit-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YCbZq/hUyP5r2jjZatlAcl9+75dsbkKkMGSPwgSLeag=; b=xKc0p3VVbNkClZxg4MXb8L+cjBdPdHB+cAxWfLyH8qRvTvSF4cxkqJvQLCwzBMvmz6 UVaNWQyPCQY2NshBqYqdq+Jbcya24xawk45Cb9cMYqMmRJSoBjzAdsI1PRm2gl2lxof8 4LAYm3v3k+s2+csOVkkMnt+ZDZLdElleOU+g1NdtSqiDe12Y9b/InR3id/uQti9QhFwQ 5MbSioC1pWtu8jZPohDrqQBThiixpAGrku7thnRLrynn+PAahln65WEVxUhPnT3EX5jb gAzC5FZ3IKbU7RgOzoEuUBIXwznrMMIVwM2EGJYHD3/fZRJIXHYWvl4OwO9fYA+3+9nw pEjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YCbZq/hUyP5r2jjZatlAcl9+75dsbkKkMGSPwgSLeag=; b=MUGidZvCQKgFqZdi8XywALTyho8j9+NVg4/9QKhoLQs6gyNEl5NBuoLThpT4jBOHNr ZExMclH+zzUhediM6BSVyYGCqiC01hVunPqgEl3LpRzZpskhgOdK6fR5faMC0kRRAB9f LibsI7RXB8+XlTOpd2T7q/u34MI4ON3NXNd+o2yLj2uS8IZ1rJVAOvXQpLr0XzXWQ+yA rWfw3OiBlUxnLgdzCap9c7jINit6ezf2d/TzZV+3jmoOiazp5EcwHgv8hMDpGUiG55pM GEHx7ywCVUZnSMxo9N6plNwTgWydid/Z2x+lk8OsxTS6g0I7kzLI6oDAhK4kCyPnnav+ ozUQ== X-Gm-Message-State: APjAAAU8TZDFlUxI+87+iZdT1eAuQP4ipnboRlH6ncMmf/MpKHBFh9ma /m9rJwjuW+ZUJIk7Bt396Ipbccw6vko4KQzgmjyi8SLIzvo= X-Received: by 2002:a5e:8209:: with SMTP id l9mr17704585iom.84.1570798926690; Fri, 11 Oct 2019 06:02:06 -0700 (PDT) MIME-Version: 1.0 References: <20191011122409.23868-1-joel.colledge@linbit.com> In-Reply-To: From: Joel Colledge Date: Fri, 11 Oct 2019 15:01:55 +0200 Message-ID: Subject: Re: [PATCH v2] scripts/gdb: fix lx-dmesg when CONFIG_PRINTK_CALLER is set To: Leonard Crestez Cc: Jan Kiszka , Kieran Bingham , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 11, 2019 at 2:47 PM Leonard Crestez wrote: > This struct printk_log is quite small, I wonder if it's possible to do a > single read for each log entry? This might make lx-dmesg faster because > of fewer roundtrips to gdbserver and jtag (or whatever backend you're > using). I think this is already covered. utils.read_memoryview uses inferior.read_memory and I think that reads the entire log buffer at once (at most 2 reads, one for each half).