From patchwork Wed Jul 19 18:27:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?R=C3=A9mi_Denis-Courmont?= X-Patchwork-Id: 42843 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:b813:b0:130:ccc6:6c4b with SMTP id fi19csp1381182pzb; Wed, 19 Jul 2023 11:27:38 -0700 (PDT) X-Google-Smtp-Source: APBJJlH+77yf4A6Oph0yLJVQHSKLLmxlL2cHbwpaNk3MWllp68jVsfEEkzhO8XPgjcXku70+KJ4s X-Received: by 2002:a17:907:97c8:b0:997:c5c3:32cc with SMTP id js8-20020a17090797c800b00997c5c332ccmr314132ejc.66.1689791258715; Wed, 19 Jul 2023 11:27:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689791258; cv=none; d=google.com; s=arc-20160816; b=IAMjRjP4jk8x9jNPOigFI5L+kVaJlWG7wbVul+zSjiliEqCakcV1/X6QFfln52rr8+ rLL3raCHO4Acb12jFMZKz2FrpqnwWi+ale/nbtgJrCO4vq0BXOYVBk8LFwzeCPCHEQvg gBSHbaVwPGxIIm22EiSJr883RK6RWYSPsU2mR4JHFFbj/mrDLgyX1UEKquQQtK2JRcNY y0DkMxL6VCRbAUehopfhHCwT1Sm0lmy+S+wJ05y7wazRybKNmj+mBXdahgmFc2YJ439e hWL1XoS3Zp9vS2e8dtCLOdZMo7tb14pl264ZpLm1tIylpFBEhT9HRmC7WTrMt3SU/oi3 XYhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:message-id:date:to:from :delivered-to; bh=83BtC0s4kO3ueF+CAio2R/fJOsSSZPGx5J8nYTkKuz8=; fh=hQcp50obTJ8bXC1it5NuEN23RGKfx0/zZ3s2gmreL+A=; b=YvR7ZQbmUvB75PeibU6fcXeXu2kYE8y6DHpk6b6GcgrE4QjJvPE+ae2pn4iKSWDU4v 6LKK5foI8ht0AHQdmigidnN3SNEbcheiuAkHqcKZjFnHeZ7kNHnREKi3oIxfsnzU+kVv 4B+npAv8yPwuVZTkaPBZKAJOj1t8KzPCjfO7lzNt6t2jms7/gQ1VtMkQ27RoXEPjmxp8 tLMiI5/tpsWbZ/m7MZIW2MwRtaRFSIXyvYQN5vktqZDnQOp/Wu8czHLVw2YoGC+/yXVZ n8lA2nukdks/FkmKEdj1gHvwG3EUqdxwHsaKt01WbdRtpmIfU/TuhxU3QJHcjxWm0Zze mt2A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id fi7-20020a170906da0700b00988f21df36esi2981275ejb.594.2023.07.19.11.27.37; Wed, 19 Jul 2023 11:27:38 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id AE60F68C5F6; Wed, 19 Jul 2023 21:27:34 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from ursule.remlab.net (vps-a2bccee9.vps.ovh.net [51.75.19.47]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 7FB6868C341 for ; Wed, 19 Jul 2023 21:27:28 +0300 (EEST) Received: from basile.remlab.net (localhost [IPv6:::1]) by ursule.remlab.net (Postfix) with ESMTP id DCDA4C01EF for ; Wed, 19 Jul 2023 21:27:27 +0300 (EEST) From: =?utf-8?q?R=C3=A9mi_Denis-Courmont?= To: ffmpeg-devel@ffmpeg.org Date: Wed, 19 Jul 2023 21:27:27 +0300 Message-Id: <20230719182727.25698-1-remi@remlab.net> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 1/1] checkasm: improve Linux perf error message X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: l9Q1gDx3Ejw/ Report the failing system call name, as is convention, rather than just a rather unhelpful "syscall". --- tests/checkasm/checkasm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/checkasm/checkasm.c b/tests/checkasm/checkasm.c index 30e2dc6fed..f521d30b7c 100644 --- a/tests/checkasm/checkasm.c +++ b/tests/checkasm/checkasm.c @@ -667,7 +667,7 @@ static int bench_init_linux(void) state.sysfd = syscall(__NR_perf_event_open, &attr, 0, -1, -1, 0); if (state.sysfd == -1) { - perror("syscall"); + perror("perf_event_open"); return -1; } return 0;