Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1667378rdb; Wed, 31 Jan 2024 05:50:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IH4RNsrbBUe1MMH78O7hdrdf8Zzide25c8TO9zuD+h3VCHptUwSyoTlLmvR1Agzv4hFbDUP X-Received: by 2002:a17:902:a50c:b0:1d9:24cb:3cdd with SMTP id s12-20020a170902a50c00b001d924cb3cddmr1288996plq.46.1706709049163; Wed, 31 Jan 2024 05:50:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706709049; cv=pass; d=google.com; s=arc-20160816; b=IPpJtq6I6dKMUqLBtCkNSmSJCDwCQnoDU8J64Ewx0fNcOU188lUwKu3Y/WPMvmSoDb +OJx1PjevzDEYK/F/awn6L9Ap5vjCPA9vBWTEswKz8HoOel67Dg9RoDxz/rUdwe5UIsB ohCn+2/1zJLyECTcFztfAK5RleN1uzm8u1nEwl74BW0PzxN9oT+L8NXqbYQ/+uXC0SFm PfTSaCMdSvpYzsRz4KMN/UePDuU5EZA/LCRbLE1a+3l5bACBAzC9uWhy0rfCUp7v8nbQ 5hjcRcFYjOYogfszMktml0fB6iTwwXTdUjhCojYLf5a6OQ7oNePwhFq1035Y9AF+LRC7 QL6A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:from:subject:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:date:dkim-signature; bh=TRAmZ7zfR7GIpS+aIsz6syaxM6Q4TrPavG5oF05xWJs=; fh=O9e6jEg9exKzNfiMTjP8gGdGeR7JxOWBstZlQxmKs9g=; b=XZI4uB5ZetLqGUS/MYaf1+zWxwoU0iISzlEKUXXy5MUX48HOBaD/vywJKYzG98R3QO PjN4r8uvVIdbbpIWcCxTHkRwGBkibpqYFBt2R4fHAAmpjE9fsnvaSmvltMic7pmgJJVE cNr/XUVXcGB4OUULQQ0UXdEXs+yjhJYx5gJ+7FrvnAlWMwIvG0Yn/HuZQ1yPzUBhdgEb SMQieK38EuY9F+/ft40A3gff8Z8P0TiJeRRiKGWNg+ZYRgYZvLuVKxr2pl0vOYk7daw+ y3Ms7Jz6CTmM9BawQ9PO/X351I+A25n8kBFYbtCR0n2GuQN8IfVPlYubPwlJuY4WGt2B Dmlw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=XPdCq7EN; arc=pass (i=1 spf=pass spfdomain=flex--irogers.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-46532-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46532-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; AJvYcCUsd2sIsdLm2WwtM9v9O7sAPTzp/nPvm8cx7MCGWFxA4YFx56dQPYpsVBSlbxgACJvNmyTdiDVQw1o0XAJ7clHS41guSOi92ODyii3c0g== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id u2-20020a170902e80200b001d8edfe3a27si5180290plg.163.2024.01.31.05.50.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 05:50:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46532-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=XPdCq7EN; arc=pass (i=1 spf=pass spfdomain=flex--irogers.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-46532-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46532-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 027E028F9D5 for ; Wed, 31 Jan 2024 13:49:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AF1EB80BFC; Wed, 31 Jan 2024 13:49:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="XPdCq7EN" Received: from mail-yb1-f201.google.com (mail-yb1-f201.google.com [209.85.219.201]) (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 7B2DD80BF1 for ; Wed, 31 Jan 2024 13:49:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706708990; cv=none; b=fVSzxVSAPr5xPSuAywgT9e521wYXmjM74WZePgBFxDpI52c7DnQGog1Ggrew0XEwzczYPklsGsdFfrfwEPK2hVyRkIVbyHEMN/NlgJTEa6P8N99+/icIaORlm1NvC+6CFPeVNW1tDT9vfALbJv++IWpgbI1E3a063SLAdRNF/UI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706708990; c=relaxed/simple; bh=u2dme1MUFaWQF1BSStVrUjjYLnHIqMsZ+Wjfwetyd+o=; h=Date:Message-Id:Mime-Version:Subject:From:To:Content-Type; b=ESjZZp5/+tUACIiAQEUjiqdDEUb5US82Z5l9U9k+BnBopxpmopXwN8BGsa33mEDPFPYo9gyr+zDWl8cmpAoZjumvYSVlfGWKhd3bXO9YiwJKmrXkjYO3jwONQbOt8F/oMYkna36QC+OUeCuhWaX5o/JrjkcTMfMk5Jluou2IIDw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=XPdCq7EN; arc=none smtp.client-ip=209.85.219.201 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=flex--irogers.bounces.google.com Received: by mail-yb1-f201.google.com with SMTP id 3f1490d57ef6-dc6c47cf679so801533276.0 for ; Wed, 31 Jan 2024 05:49:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1706708988; x=1707313788; darn=vger.kernel.org; h=to:from:subject:mime-version:message-id:date:from:to:cc:subject :date:message-id:reply-to; bh=TRAmZ7zfR7GIpS+aIsz6syaxM6Q4TrPavG5oF05xWJs=; b=XPdCq7ENDKCH03IYWpJWWzcDbG4raKx2XumxlXaJJevXX00oTKTWX3gHAWyUBXtzIU 1Oy2YV4FOV+GXeGSYj4Kbng5P2avdJbN2eytRr4Ed1NK1DLu8DbJIngkCqDrl8KijmUz 9PMilDUg/C0CvHP0K/dHPFk6+UxS88zyGm1CiYCpuPFOKYzeLvBxYUJQ1kJoFaLAg/Z1 BpXMDur1nrdknuhK7eg7kc4OHg+CevQSNPA3glys5LDOMbnLXKAPg7kKV0NV7q/yazsP bhiAbj0mQO5Yp2QGCmPbHXzkX6/x4H0JU8FrPAXTwYnEfQyPbegJC//qxB6S4rgaiOMV Mffw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706708988; x=1707313788; h=to:from:subject:mime-version:message-id:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=TRAmZ7zfR7GIpS+aIsz6syaxM6Q4TrPavG5oF05xWJs=; b=m8wew3YKwhIS04doYFOtwdokot1HD1qbkq3QmBJSPcRKyoIzAlhQW9NjW9aaRsJKIO FkgRf26Ngyhpvpbz53P+6yanHNpdSWZGHjq9evVb8bY/e8zfdL2UQpsd2xfBIoMeY+S1 3OFZvesSXVaiHNKalCzgLwHrrZe97X+8NVZ6noeA3BYPYL93DRRI1uPffkavG3+JTrDU 5M8MEZpkIV//Eg4YTkI7Rw7ST190UeT5rsZ33+kegI7AYkiTsM2xabnTbs3subGO3Skx rpTrb3De0TE/HGwix4IwSPqebHyK2Y6Q9YpHzJQ2gGN4cxPdk//FjMOdYzKSfePD0Zi9 sOCw== X-Gm-Message-State: AOJu0YzO8X9011nmM3JnscCDm4H4hKj0KvUWxs/Gc5IdJIlWXqznZpA5 MHc8aZFlcT7GhaqZpj1MOfuY4Z7rzdhUoXiYCQ2GXvJ5g088B+DiDiRLggqcCL9dMeyR4/sePLc TALlQyg== X-Received: from irogers.svl.corp.google.com ([2620:15c:2a3:200:d0ab:43c6:7969:62ab]) (user=irogers job=sendgmr) by 2002:a05:6902:1793:b0:dc6:519b:5425 with SMTP id ca19-20020a056902179300b00dc6519b5425mr468454ybb.11.1706708988337; Wed, 31 Jan 2024 05:49:48 -0800 (PST) Date: Wed, 31 Jan 2024 05:49:38 -0800 Message-Id: <20240131134940.593788-1-irogers@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.43.0.429.g432eaa2c6b-goog Subject: [PATCH v2 1/3] perf tsc: Add missing newlines to debug statements From: Ian Rogers 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" It is assumed that debug statements always print a newline, fix two missing ones. Signed-off-by: Ian Rogers --- This patch was inspired by bad debug output in: https://lore.kernel.org/linux-perf-users/CAGjhMsg_bVKJ_zfsLUR32+oZwGDr3OiBHV_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/tsc.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 = 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) == 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