Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5853406pxv; Wed, 28 Jul 2021 23:27:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztDjjrkwj3hPVhDq9ZxVnIxnEcIFw/NFjUkyYP3J5H6uWd/OjqL8uP8WUMFLgmhC8v/Llk X-Received: by 2002:a17:906:bc5a:: with SMTP id s26mr3080997ejv.11.1627540021088; Wed, 28 Jul 2021 23:27:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627540021; cv=none; d=google.com; s=arc-20160816; b=wZFW2csCzFSD1zXDVVuvAiH7Z0zuvFr+XzuyqVHduXBVDWtTtoRo/pN7vbxtx6fkYY /fzTRVY738JCWBFm8FHdWVpIY3S3Qp9LSqNhFvUpGyqMY8W4nRG1IZFAelgg2+edI86Z Rq9N/bRDyEHkH9GhIdCRxwgV1Ot9qoXPoX6Jn02ekexahqKlAuqEsMQ3Nl+iOiDAgrgw TnjOdUxlPipmTgPA6Hp6MTnUwR8XpGUvWaNbq61Vg/TQlHgbbEHefQrFfe79xMov7Pxg AsseL1LE92gbLU3m/9FaLo3YSQm3K7lDzC3AjIfxTqD9l32MwT29B7UIzJ+97wky3RSr jf1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=BFgxncVDj5jCNzVVsA7tSI3+CxqTrEq04XR7t3uim6A=; b=A5pLS7inTdqBWJTFnGhCJ2aeblQOuL2dOAuU4qk+Lkyit9NTkhI+pY8ObvIl9mSeH5 6F1KA1ozr02FYUgv38RMaHa3wHl3x9VKoWm6Upoo53HOKk13FDFvH9hm0xrNAtQLwWFu Bkdp7tPMKAz+nvFQEnR0EtrFdiWXkREGKCzLUOoo2X1Qn9ORgmB+lEPyAw4JZ/Aj21wL TAKIT/Wtf/awJpb0HXZvh9pM/7zU5+GLyvQNgPlRt9VmXfRc1rzITx6p+AL/fpxR3lj8 8FiAHbxRR1PkOKK4bsUBMfaA1V1Thpn58yS/quaQc6UtUYPYme1DphLNsOm2LvHqkC60 ecfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=jyZoaRrW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w7si2025602edc.94.2021.07.28.23.26.37; Wed, 28 Jul 2021 23:27:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=jyZoaRrW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234318AbhG2GZH (ORCPT + 99 others); Thu, 29 Jul 2021 02:25:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234243AbhG2GZC (ORCPT ); Thu, 29 Jul 2021 02:25:02 -0400 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39EE3C061757 for ; Wed, 28 Jul 2021 23:25:00 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id r1-20020a0569021541b029054df41d5cceso5733683ybu.18 for ; Wed, 28 Jul 2021 23:25:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=BFgxncVDj5jCNzVVsA7tSI3+CxqTrEq04XR7t3uim6A=; b=jyZoaRrWr6+mCcNQhxux2+kKNDSn/zDW4PyxlSvUYousZN6mgZ/lqxBJj3D/mxwdSN 3m6huorXRcVFzwHtlIYOCCa9jRH8oEAO6sfQPdm+UhhNqJGa4jtbqpfx9ohVuIGWMKA7 zEtRDGm42rvD7alADwYSvvvXYZ6cKe+j1SwAbDS/U0VxjHwIUWLQpzzOnAVs4FWSJa+z DWRIyAgGdKUU6S4KsKoE9MtdDk1zTCaPp9ivYYKe4dDW6OduPIsql06/yRGHR76SrgRO hjLOcGYnq14hA40cnPQ4WF4RkfLzEbZ77hroOHrdT1/gyh2K62njRRfX5a+JYgRZbNqn /SNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=BFgxncVDj5jCNzVVsA7tSI3+CxqTrEq04XR7t3uim6A=; b=JQFkxH9xz/77C8cUy5kd1qrqxVWlT0RT7alfx7BtsHhq74nnfkwY1yryxU1gD5tueJ wUpAhT5yRhkyT0d1AdvRgSDj9PBdd1LAwAb5fGimScfGzI2i5mi4SSouZf2kEtA5Mhu+ 3ikl+b4fHyWM2IhSAJGbJ+dIzSVZeVv5Du0Go97n5CjI+DEuaDT/o2sPxuKXRqzW/LI2 0aI0/aTXgS2xFZq+bjbjtEfjCmSq6olRn/1pnFXSDwhMpaK2tIiCwyCp0ypRSRkHGKGY SUkIwKVDa42QpcRxdzFW83QLIzRuRm8UzJzlmadAOkMWX/HCZtueYsFxaWBmVMufgje/ HAiQ== X-Gm-Message-State: AOAM531J7wVnEGoxVhg1D88Xp99tG/wi+kRtDK6SRascXUgn0npwDt1C oe4qMxylMQswWfQzHz1f4DKSCOVRzRAr X-Received: from irogers.svl.corp.google.com ([2620:15c:2cd:202:8f98:bc28:73a6:e8c9]) (user=irogers job=sendgmr) by 2002:a25:6e55:: with SMTP id j82mr4540463ybc.480.1627539899394; Wed, 28 Jul 2021 23:24:59 -0700 (PDT) Date: Wed, 28 Jul 2021 23:24:49 -0700 In-Reply-To: <20210729062451.1349566-1-irogers@google.com> Message-Id: <20210729062451.1349566-2-irogers@google.com> Mime-Version: 1.0 References: <20210729062451.1349566-1-irogers@google.com> X-Mailer: git-send-email 2.32.0.432.gabb21c7263-goog Subject: [PATCH 1/3] libperf: Prefer exit(EXIT_SUCCESS) over exit(0) From: Ian Rogers To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Cc: eranian@google.com, Ian Rogers Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Change exit code to be more intention revealing. Signed-off-by: Ian Rogers --- tools/lib/perf/tests/test-evlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lib/perf/tests/test-evlist.c b/tools/lib/perf/tests/test-evlist.c index c67c83399170..eceacd4b014c 100644 --- a/tools/lib/perf/tests/test-evlist.c +++ b/tools/lib/perf/tests/test-evlist.c @@ -251,7 +251,7 @@ static int test_mmap_thread(void) for (i = 0; i < 100; i++) prctl(0, 0, 0, 0, 0); - exit(0); + exit(EXIT_SUCCESS); } threads = perf_thread_map__new_dummy(); -- 2.32.0.432.gabb21c7263-goog