Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4882888ybg; Mon, 21 Oct 2019 16:21:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqz//N1OWqr9l3Nujz3MjEQ8ACUIX7gJFXF95FtMo8PWq+rrNl+iJc/JtkGHgQrBcY3uXF2j X-Received: by 2002:a17:906:1e43:: with SMTP id i3mr23623333ejj.77.1571700098956; Mon, 21 Oct 2019 16:21:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571700098; cv=none; d=google.com; s=arc-20160816; b=lBv3t7poNL5po6Dlf0HbSszsofbOPB6wtuwsPyfj934UuDwm0R3+AeTT+FyLvmiVsR mJ4159ZqPOwzE/uE9nMsN3JW2z8VUTGpqdcUOSaglcgtwVH27myr5jFTxqQWcO4FMJ8A OaLf93nmMmd1c5cgDA/MMfP5upl1ptFQLEs31Z4Lr2W6jBQe6yDfSR17qWO37R7NwulI /wiXxeTRF/wa9/8ej9gbrN2JVwIl3aTKUdry3sdxvUmoZPAsCnVOgGX7HPwis4nlNtyB +e2fVLZzNfCpYG/KLiuZgzP5CoDyAQQceLX+kMNB65xe+mi0l9Nk3mCjhZTy8AUuhYED dVIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=ZB6dvt2Qrl5SYyy0JEPwRznTzidAUEknIZpIMdoP+8Y=; b=UG8EzrcpZzwdbA0jazrg+IyDMX5D68tEsbI9F59lMs7YHTmvdG0IujTAxjN/y9FQU7 e7N4JQPo/6hWebBxMTumFtjn2c/D5HKlBtP4/O6G6ZhFe8vfV+JfU2BiYoMELYjZ4vX8 2f55f242PLWRMbJtYFQf8ugcwhaV/EabHhzDNcKZZaSDxyOdXedBS35ttD2/A5b6u7Ip mz58LnA3Ie2mm9gF1E9Qdw/wIaabbkIgU3ko5U6PLP/DB7UQQ9xZTt7/WH6TjxedsyBl 0XtxVLcFgtiixeyoXAJwexct4ACRQZpVLurNyl/fw2L1oIV9CamkPzJInxUaZ4hYq0HQ UN6A== ARC-Authentication-Results: i=1; mx.google.com; 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 v8si3368334eja.227.2019.10.21.16.21.15; Mon, 21 Oct 2019 16:21:38 -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; 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 S1730567AbfJUXUA (ORCPT + 99 others); Mon, 21 Oct 2019 19:20:00 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:38297 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730556AbfJUXTB (ORCPT ); Mon, 21 Oct 2019 19:19:01 -0400 Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1iMgwr-0003qQ-5O; Tue, 22 Oct 2019 01:18:49 +0200 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 8606E1C0086; Tue, 22 Oct 2019 01:18:48 +0200 (CEST) Date: Mon, 21 Oct 2019 23:18:47 -0000 From: "tip-bot2 for Jiri Olsa" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: perf/core] libperf: Add pr_err() macro Cc: Jiri Olsa , Alexander Shishkin , Alexey Budankov , Andi Kleen , Jin Yao , Michael Petlan , Namhyung Kim , Peter Zijlstra , Stephane Eranian , Arnaldo Carvalho de Melo , Ingo Molnar , Borislav Petkov , linux-kernel@vger.kernel.org In-Reply-To: <20191017105918.20873-11-jolsa@kernel.org> References: <20191017105918.20873-11-jolsa@kernel.org> MIME-Version: 1.0 Message-ID: <157169992791.29376.3655092802607172757.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the perf/core branch of tip: Commit-ID: dcc6854215f115efcbd79368bc07099c41de0b6c Gitweb: https://git.kernel.org/tip/dcc6854215f115efcbd79368bc07099c41de0b6c Author: Jiri Olsa AuthorDate: Thu, 17 Oct 2019 12:59:18 +02:00 Committer: Arnaldo Carvalho de Melo CommitterDate: Sat, 19 Oct 2019 15:35:01 -03:00 libperf: Add pr_err() macro And missing include for "perf/core.h" header, which provides LIBPERF_* debug levels and add missing pr_err() support. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: Alexey Budankov Cc: Andi Kleen Cc: Jin Yao Cc: Michael Petlan Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Stephane Eranian Link: http://lore.kernel.org/lkml/20191017105918.20873-11-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/lib/include/perf/core.h | 1 + tools/perf/lib/internal.h | 3 +++ 2 files changed, 4 insertions(+) diff --git a/tools/perf/lib/include/perf/core.h b/tools/perf/lib/include/perf/core.h index 2a80e4b..a3f6d68 100644 --- a/tools/perf/lib/include/perf/core.h +++ b/tools/perf/lib/include/perf/core.h @@ -9,6 +9,7 @@ #endif enum libperf_print_level { + LIBPERF_ERR, LIBPERF_WARN, LIBPERF_INFO, LIBPERF_DEBUG, diff --git a/tools/perf/lib/internal.h b/tools/perf/lib/internal.h index 37db745..2c27e15 100644 --- a/tools/perf/lib/internal.h +++ b/tools/perf/lib/internal.h @@ -2,6 +2,8 @@ #ifndef __LIBPERF_INTERNAL_H #define __LIBPERF_INTERNAL_H +#include + void libperf_print(enum libperf_print_level level, const char *format, ...) __attribute__((format(printf, 2, 3))); @@ -11,6 +13,7 @@ do { \ libperf_print(level, "libperf: " fmt, ##__VA_ARGS__); \ } while (0) +#define pr_err(fmt, ...) __pr(LIBPERF_ERR, fmt, ##__VA_ARGS__) #define pr_warning(fmt, ...) __pr(LIBPERF_WARN, fmt, ##__VA_ARGS__) #define pr_info(fmt, ...) __pr(LIBPERF_INFO, fmt, ##__VA_ARGS__) #define pr_debug(fmt, ...) __pr(LIBPERF_DEBUG, fmt, ##__VA_ARGS__)