From patchwork Wed Mar 29 03:52:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ze Gao X-Patchwork-Id: 76351 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp142673vqo; Tue, 28 Mar 2023 20:53:37 -0700 (PDT) X-Google-Smtp-Source: AKy350Z+J2qnJ+yqhS3HvEXBY2LkPsObuvzSzkN3d7f++Fr4zU7nco5KraQ+clu75qwF02yLJbVp X-Received: by 2002:a17:902:e80c:b0:19b:afb:b92e with SMTP id u12-20020a170902e80c00b0019b0afbb92emr23438196plg.40.1680062016913; Tue, 28 Mar 2023 20:53:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680062016; cv=none; d=google.com; s=arc-20160816; b=zxcWjyZQ3baEZnf7pjvnd1oVtTz8+EO/sJHcOeor4D7PhiJb8BnNCUycjUnTQ8VYC7 18pM8a+IGUoJAktRgW7XAF1RNOV4kHo85muAma5pK89zUUneO4nDxFqwgdbXbmuTg27x WI67AFyk4Jb3+q253StQV9RE8jHBJ0Dkkx95y/mw4g4IT04jWb09iqJskbY3EuPEP8si cTOsYZ6yv/Hkb2gxNuRUfyxK5SCaqSQjkpWrH49Ge2rMll9/sVMTciUbB5H5BHyPqFxm DHPP/lDZN27LrNjHp6wvSv6gl+x4Td3rTCP1BSFIequ8jjLzu9DsbfEpXi/0dTAj3Mh9 zl2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=pay3hwuHUUvDk/k43PBkEAY7fdDECNHycaAxPTjELlc=; b=j+iCB/gVwOuA04976Vwgz2dF00VzCLdo1Znnl1EnyOgAkJFQ4YsPNQRdvN/xoqJoze ecbSp2vQNe5PX7gJcO2chG0pdlpLj48Zlm58jOWqVoW16SFHYNM7Qnhk/khsXdgUHbSM lOAU3ZcEMQ5E7vJXLLB83ecJ7SOCLc0F6puCu0MjLbcrSS6D8rI9DAbW91ku2/gk8/tV DjHQs/uFfqjykXdnjJS8xOz6zqg6qAHwzzFCYU/wDNVsL9o5ZYCkGhUeMmSSbEbsUqU+ QkxBLoYGZeQpiyYkb0UvgOOREcQjY0ooI9kBrUXi5UCwl5u15fFp5oJEtK/Z2FIcqJFt kSnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=MGWLkajR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o9-20020a170902d4c900b001a0039e3597si31976184plg.316.2023.03.28.20.53.23; Tue, 28 Mar 2023 20:53:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=MGWLkajR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229745AbjC2DwP (ORCPT + 99 others); Tue, 28 Mar 2023 23:52:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229642AbjC2DwO (ORCPT ); Tue, 28 Mar 2023 23:52:14 -0400 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E61D2D4D; Tue, 28 Mar 2023 20:52:13 -0700 (PDT) Received: by mail-pl1-x629.google.com with SMTP id iw3so13701995plb.6; Tue, 28 Mar 2023 20:52:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680061933; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=pay3hwuHUUvDk/k43PBkEAY7fdDECNHycaAxPTjELlc=; b=MGWLkajRda3Cqk6mMMIOaQhYUEgKSMhRTVjJwqqcMRnvH48zClJm0NYufJpOHXdHZA V6bf4XQ/BwPJ9q7So/W4CxdNVI4oMc2zCZnUuPJjHADIwl2Cfrt4ZHJifOF0ePWoZaag QAqUEQPfMR/bV5j9160nNzX96cCucs9U91fj3DtGSK9kNIiG2bDO9jtCjg+toWrBT3Z7 qqc5l5E9jY3f3JZQ6TaIY+syRAbnTxuDm8W6Lu8F+Soq0xJ9r/5+WxQRLUpyhqN2iyT0 OKmB9/+I92cIfdHluvqCPrcFiKz7DE7fqQWDEt+KsXwio5Y/yZEGNN4yJ4qJ4vMoOXn8 vvmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680061933; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=pay3hwuHUUvDk/k43PBkEAY7fdDECNHycaAxPTjELlc=; b=7ttNFH+DOR14fn9n72pORb2FxHYTJnisTHViNSTZ/+e/gCiLtlS94ymqAt92kKZyY0 0QmCw07D1Sf4aOh/SLjhGRj+/FxYhJSI11zDxFfra5KrMYQFgpu27Q8VlFCEnKweG6Cd VnYpG1dPP+viQn+m6zHoV9AZHgYNQMYIxWlaGlUdK8/qw1MUcTj4c8MdaIatN0fAtIRZ q1zN6LFVLjcUiopd7zwMKrdQudCcURoLZHiVi21KGrCI0PEIXibz0jlqaWLnKdYUXG/x 6+a0bJSHxGostvgJxqV5sFqrxRGIR+1WxEsdiRqNre5rApLfco2cskhOSzqfnFqjI3As HgUw== X-Gm-Message-State: AO0yUKWw8YxV3T+xXv/H8ORFi2tdMxvSQY7hPdCQRNPYx5AUF/ZXkwpv iH4lK5ahWHyTlP+YEocTKuQ= X-Received: by 2002:a17:90a:351:b0:23b:355f:b26c with SMTP id 17-20020a17090a035100b0023b355fb26cmr19825370pjf.23.1680061932648; Tue, 28 Mar 2023 20:52:12 -0700 (PDT) Received: from localhost.localdomain ([203.205.141.10]) by smtp.googlemail.com with ESMTPSA id e91-20020a17090a6fe400b0023f786a64ebsm311300pjk.57.2023.03.28.20.52.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Mar 2023 20:52:12 -0700 (PDT) From: Ze Gao To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Adrian Hunter Cc: Ze Gao , Ingo Molnar , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] perf sched: sync task state macros with kernel Date: Wed, 29 Mar 2023 11:52:02 +0800 Message-Id: <20230329035203.6194-1-zegao2021@gmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Spam-Status: No, score=0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761672709382620611?= X-GMAIL-MSGID: =?utf-8?q?1761672709382620611?= commit 8ef9925b02c2 ("sched/debug: Add explicit TASK_PARKED printing") changes some task state macros, this patch makes perf-sched in sync Fixes: 8ef9925b02c2 ("sched/debug: Add explicit TASK_PARKED printing") Signed-off-by: Ze Gao --- tools/perf/builtin-sched.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/perf/builtin-sched.c b/tools/perf/builtin-sched.c index 86e18575c9be..c715593d88c4 100644 --- a/tools/perf/builtin-sched.c +++ b/tools/perf/builtin-sched.c @@ -105,10 +105,10 @@ struct sched_atom { #define EXIT_ZOMBIE 32 #define EXIT_TRACE (EXIT_ZOMBIE | EXIT_DEAD) /* in tsk->state again */ -#define TASK_DEAD 64 -#define TASK_WAKEKILL 128 -#define TASK_WAKING 256 -#define TASK_PARKED 512 +#define TASK_PARKED 64 +#define TASK_DEAD 128 +#define TASK_WAKEKILL 256 +#define TASK_WAKING 512 enum thread_state { THREAD_SLEEPING = 0,