Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1682135rdb; Wed, 31 Jan 2024 06:12:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IEeYC3PeMD+9NZUFoB68ap5nVjrVYW6+t9lYZkMi2dV8lF0gKCxroj1/qNWeqEpxH/fgOAP X-Received: by 2002:a17:906:52d8:b0:a35:9e3c:80dd with SMTP id w24-20020a17090652d800b00a359e3c80ddmr1230835ejn.5.1706710358880; Wed, 31 Jan 2024 06:12:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706710358; cv=pass; d=google.com; s=arc-20160816; b=drZOxZFcgq/PoBMQ1h1fVbIW37fSy8xethh9dzv8GWcfGxFAjwW7rYX5GIDjGBn54t i7Tod3+aIV7kPLCXUSDU2aZY9fh7sGIueHMV6y8XGbQcVN515LFhr4nW+QoR86LJtzN8 WyFBS9FQviLzDez7VVImVxUENoklp39dZqiu7wgp00jJT/zI9ydk+rtC+Mx1Vdk94Lwj Bp5B3gVs9uUbGCAwN/CbWmnWH0rVGgTBxEsXMzx4SNpRlrYuARHW+88apyTNRSsl4tvg BZnI+0Yz/kvHpOGVfO8MLpmpvEhKY+m68wpd/k6NaE4sRSb8a7SfnGGHWzo+TwxcnKzl 4MHA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=Qp92m4+7j1oe526U6TZ1do3LliICAajgI9vCOPFkmF0=; fh=nHqXDkvm5AHJDKvwbtLeJqRRBTRzMuh6yqo16fRce3g=; b=X3m090xUeD/LZmqVW6c4pftpDHn2m6R2GlleugCt7+YL/s3Pve5zG4cmCeundcWPvX iH3cSEYuEd6GI7kL62ve/JlPoxTo0ADN5wUCW6SvVQH7OC8iJpTWG5NJFfabr42P6RJv C57I1ML1+joaQXznhlTuXiRaB6L30z94oav6H4c8SH/9QJOcwfWddJz/u1hXj1jkYoXA QpaaeBF8JfHBTTVNfFxuuvBRmWms+2w+/MC12EcAnsJJcKOVX8xk9Rbg5jfuy8Eoh2qM hLUfGMUuxXipiYNzfEZ8aUOK3klwNMwFTSNZeVuB+isXueNAcdyW54gtdxDdZsdRguQq lvbA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=LVNj2Nr6; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-46535-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46535-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com X-Forwarded-Encrypted: i=1; AJvYcCXiGyKncgBHtxOZI/jHl9cEznz1WkGWSx2T+u/gbDP0EG2dEd+Oyu7FWW+DWkSA6t+yY2FFDIE9RWi8Yg/QsVj9qbNy0RAE6jp/BWtdig== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id q6-20020a170906360600b00a30c933c62bsi5684614ejb.353.2024.01.31.06.12.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 06:12:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46535-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=LVNj2Nr6; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-46535-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46535-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 004DA1F2C8F6 for ; Wed, 31 Jan 2024 13:51:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A6B4780BFA; Wed, 31 Jan 2024 13:51:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="LVNj2Nr6" Received: from mail-il1-f174.google.com (mail-il1-f174.google.com [209.85.166.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 65D1380BF1 for ; Wed, 31 Jan 2024 13:51:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706709109; cv=none; b=cNA8K/vN9jipHhNlaXZkp61JNLwqE/+bqWjAUEA8KcZnAZPiOE074TQCXv4xcZhi3ItWO/g3dqXLcBWxHYPFqhtQdGbdwFdaFLvJn2oQm2x65oMdfl4jQVaMdP/7bH7rTWkZ0iaaRZfLtsCED7EZVYX/KdSHoGwDCeuVCvVMds8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706709109; c=relaxed/simple; bh=fyn7CNrrVrpYyrM58B+ntXebk8wUTe3fdYprQRco57w=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Content-Type; b=ngoonFkEhpC93hqjGm6ETrZHSKxWhFJMDYW2FNvuep6QzgVp21mrBEuw5uOqeOueaa/snNOoMvCIjoqq2jeWrTXqgnKCDO85wtobCBESytSFPrWLuHu/iTskgboiJtzDQ9f16JcRIaHMOXBjUJZpXfvE03NFMfL1/HYRKbHo1NU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=LVNj2Nr6; arc=none smtp.client-ip=209.85.166.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-il1-f174.google.com with SMTP id e9e14a558f8ab-36394219fbfso141325ab.1 for ; Wed, 31 Jan 2024 05:51:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1706709107; x=1707313907; darn=vger.kernel.org; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Qp92m4+7j1oe526U6TZ1do3LliICAajgI9vCOPFkmF0=; b=LVNj2Nr6xDNiGEKjMbxMD3UBG8y8693Dl7x8vddOiBWwVoHRaufFXh59Exy3JCu2Wb SdrG4/5109P/Me7ug+ZOrleUu17dgYY6sfbGPf7rWGR8+w5pIF5ds+VecaS4qc662Cd5 YIN9NE13v9rhcAC//SAqO9EHdmdrrp/cwX4VER0ius6ykdU4t5hQUnDNcQVIHpOGRgQm aZvU8JqagTcXAFm7aLpZAY9ofytkarq3JrL1h4kmfYZO9jML7S31xYSe2n+dj6IvSuab h3w/6Yw6QVuptWTsSwz+SAhRvkuS7DOd0LTiPmIPppz+6Mtfzn4PQprDXuF+our48xnq jD3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706709107; x=1707313907; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Qp92m4+7j1oe526U6TZ1do3LliICAajgI9vCOPFkmF0=; b=RCCrHsbayjuwgJbQPRgessjKGcS6Iqg3+Ein3x6YVME6dEaqFG1pB5swbay/81jjTq UJA5umX3WX0KkRYUL5W2Co//0CQK0xs1f+5h8lddslz/tkvyIcRNsYtuH2UunNCYzPy0 HZSoYZLjuAvICbpQEG/FTsAtO54jHCet8HtC0s6BAAkGNv20jZXkebiLJpEUYZyrvRBJ xSVXXHoWmQPyGLdMw8RFVNYQnTepPy2fHFqAZftKSYKoTtx9WaWvbdjpES2SA6wvw7Zq /HhG+asTlISJZ9KFsdrBQlGyGW7Y3stpw/dBK41PKdIRyaaSRhuPeQwuzhGMLzYhhiZj 4log== X-Gm-Message-State: AOJu0YwbY7GyAcZHjNQBrAdvpUo5ZA5f+thT+tQL3hZ5ACiDk4AsHKad qLFCnYukz+qK8Q5cZ3WXRD3pkARfZD5IUNirr74c4m8IBPFrV8JX9VU19aoDwhpLjJBDf+qL5gP Racz1BBTqDoLt5F+QJVyL2UOEIW7r7lSXllGy X-Received: by 2002:a05:6e02:e0b:b0:363:8007:d7dd with SMTP id a11-20020a056e020e0b00b003638007d7ddmr468225ilk.3.1706709107325; Wed, 31 Jan 2024 05:51:47 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240131134940.593788-1-irogers@google.com> In-Reply-To: <20240131134940.593788-1-irogers@google.com> From: Ian Rogers Date: Wed, 31 Jan 2024 05:51:36 -0800 Message-ID: Subject: Re: [PATCH v2 1/3] perf tsc: Add missing newlines to debug statements To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , Kan Liang , James Clark , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, tchen168@asu.edu, Michael Petlan Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Jan 31, 2024 at 5:49=E2=80=AFAM Ian Rogers wro= te: > > It is assumed that debug statements always print a newline, fix two > missing ones. > > Signed-off-by: Ian Rogers Sorry forgot to add: Reviewed-by: James Clark To this one. Thanks, Ian > --- > This patch was inspired by bad debug output in: > https://lore.kernel.org/linux-perf-users/CAGjhMsg_bVKJ_zfsLUR32+oZwGDr3Oi= BHV_BJ3QtFjyKAs7Sgg@mail.gmail.com/ > --- > tools/perf/arch/x86/util/tsc.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/tools/perf/arch/x86/util/tsc.c b/tools/perf/arch/x86/util/ts= c.c > index 9b99f48b923c..e2d6cfe21057 100644 > --- a/tools/perf/arch/x86/util/tsc.c > +++ b/tools/perf/arch/x86/util/tsc.c > @@ -33,7 +33,7 @@ static double cpuinfo_tsc_freq(void) > > cpuinfo =3D fopen("/proc/cpuinfo", "r"); > if (!cpuinfo) { > - pr_err("Failed to read /proc/cpuinfo for TSC frequency"); > + pr_err("Failed to read /proc/cpuinfo for TSC frequency\n"= ); > return NAN; > } > while (getline(&line, &len, cpuinfo) > 0) { > @@ -48,7 +48,7 @@ static double cpuinfo_tsc_freq(void) > } > out: > if (fpclassify(result) =3D=3D FP_ZERO) > - pr_err("Failed to find TSC frequency in /proc/cpuinfo"); > + pr_err("Failed to find TSC frequency in /proc/cpuinfo\n")= ; > > free(line); > fclose(cpuinfo); > -- > 2.43.0.429.g432eaa2c6b-goog >