Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp981258rwo; Wed, 2 Aug 2023 07:07:30 -0700 (PDT) X-Google-Smtp-Source: APBJJlFp93p8kpMX7XNi/E9SaKOeo3OmeNb8FzEBl00zLd6DughROm5EoVoFUDLBX29QHAVE9gQy X-Received: by 2002:a05:6e02:1a2b:b0:345:a6c5:1ce8 with SMTP id g11-20020a056e021a2b00b00345a6c51ce8mr17603857ile.14.1690985250343; Wed, 02 Aug 2023 07:07:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690985250; cv=none; d=google.com; s=arc-20160816; b=rwJ5WadOcm4HdHwBpBjSImfi6dF89sr2qHGI3luG7LkQzsyYasdRn++9XeJ5F306A4 GHwLZ4RsbmuPyR/2hz5Gd0kCzBMxJqrxWn26lBw2wfzFO3wECu7eam3cx7tFQpIJkJBq 9MZ7a28vI4Maci6Ndsw84Sk87AgoGrmpzNnXDbrFw5bFcXeUDXJHAv3PDNaaq2zbQnK9 7ayYDv/Ev/P7JSwqS/424oE1kNvW16MHz09ctufMd01L6TC9jQh7Mu3f0W3IqfZYm+h5 yfrgNegEpxl+4VXz3THPau1LbDJ8pJ1zPI8W5IcGe/F2xpa3ONFZl/CGzLLivrakxODJ pM8w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=u8lpjzm6rHULKX3RnedYfP137m4qvGL5uKJaH+JzOyE=; fh=4S4dukURCUlSsjzSa0Ofy3qHSrrdu/uT1HnGBPj5BK4=; b=Xr+Fkg2RSWXeIaUsTYmZ3YVcu86LFHzM3EOkT2FY8IMkWicHhsXPzLRH6P4Ah0g9Ad O4uGrapP+k8NO7AU9ce4BzkGqHNnHW9Ej/sHVhN6DzQtqnzdl4gThZHt8SZbvIlMIogJ 0TjAmaKSqtzi2lQV+JHQOLhu9jzuiyJxjY/oW2EG8eglXoArx12THas5zdCX+dtLXMMW LE9D/fo8clIc6dw/IEWkFxw8+3V7WNZRND3Yg61VIO8l155OZ4EFy/rJVOt2Vuu2ntPY qODsOogC7OP9MuQ4v4NOy3c8hA2nQFtoiiaZpBfAAqk7FogRo+nfiQIKdt2S52eRWjUo n+Jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=dsOEdkUx; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f10-20020a63de0a000000b005533db72478si8011645pgg.731.2023.08.02.07.07.16; Wed, 02 Aug 2023 07:07:30 -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=20221208 header.b=dsOEdkUx; 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 S234699AbjHBMtR (ORCPT + 99 others); Wed, 2 Aug 2023 08:49:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234818AbjHBMtB (ORCPT ); Wed, 2 Aug 2023 08:49:01 -0400 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6057830C6; Wed, 2 Aug 2023 05:48:52 -0700 (PDT) Received: by mail-pj1-x1032.google.com with SMTP id 98e67ed59e1d1-2683add3662so4705778a91.1; Wed, 02 Aug 2023 05:48:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690980532; x=1691585332; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=u8lpjzm6rHULKX3RnedYfP137m4qvGL5uKJaH+JzOyE=; b=dsOEdkUxZ1tD0QOsLdlp1zsXXHcieudYGt0U2fn/8f2w/6NdSK5Nom90sLaMCS79VO LzqM7DSiv3m8Hwx1t07Zp19pmLFJJP2zZ9CmQCc0FSGxAQYwSJ2UM2Wz7IX8t5y7cvht /VJGkDkDYaZ1Z/vu0FhjBcDt6WKWLEY26NZ83tqM5JGm3h8Z0GleINZTIljljgp/xkGM WPxbr793xnvOXWGTd3A+7KkbCjd0N94kwA5ZIW7s8roJg6Z+Es0YwTH4qsn9JpljLHUv 9t126fNkmkPiX8RijOxRbPQAI1E+2Pwmza6sfmocbKLSsYEILpRw/DSffy3zvmN0xLcc kZBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690980532; x=1691585332; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=u8lpjzm6rHULKX3RnedYfP137m4qvGL5uKJaH+JzOyE=; b=EEU4+lsvkd7NInan/4M5KbL5Hxqiehvl+xqT0PvTqLf4xmKeUNtGIf0KhgD6lfH8w1 qHXlL7As0k2B5XxObHjDqzFZPgWVzsClGIQG1EwiqMc07f4WjxgTCp3hi0+4U5YUDV6J FMM3R8p8obuXaJa7xsudoab1kOdjZj63zZhF2hmATzLkBJz1GqAOip3Bs5tsibN9Z8Qe SEE6qSUmiHrT5WUTv7TQydtvjnuwWD4egwf5r8phMOXrRRNveBa0Ot8qP/w16Q+Svdv3 MB+fuHN7qE4Gt472HJEJSKOfgYJId0zalJ+bBiE7gq88jDGxsds878V41yn23GjWaO6N PDZA== X-Gm-Message-State: ABy/qLaAzkBBBuxFJhMR52rfCxoVNcDKuL3yi1C/QGP7ocgJgBHnGyFm DL+nm07c7jKrhSty44qUTTc= X-Received: by 2002:a17:90b:4a8d:b0:268:1217:46bc with SMTP id lp13-20020a17090b4a8d00b00268121746bcmr14634627pjb.11.1690980531731; Wed, 02 Aug 2023 05:48:51 -0700 (PDT) Received: from localhost.localdomain ([203.205.141.17]) by smtp.googlemail.com with ESMTPSA id x34-20020a17090a6c2500b00264044cca0fsm4811993pjj.1.2023.08.02.05.48.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Aug 2023 05:48:51 -0700 (PDT) From: Ze Gao X-Google-Original-From: Ze Gao To: Adrian Hunter , Alexander Shishkin , Arnaldo Carvalho de Melo , Ian Rogers , Ingo Molnar , Jiri Olsa , Mark Rutland , Masami Hiramatsu , Namhyung Kim , Peter Zijlstra , Steven Rostedt Cc: linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-trace-devel@vger.kernel.org, Ze Gao Subject: [RFC PATCH v4 1/7] libtraceevent: sync state char array with the kernel Date: Wed, 2 Aug 2023 08:47:24 -0400 Message-ID: <20230802124840.335638-2-zegao@tencent.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230802124840.335638-1-zegao@tencent.com> References: <20230802124840.335638-1-zegao@tencent.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 Update state char array to match the latest kernel definitions. Signed-off-by: Ze Gao --- plugins/plugin_sched_switch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/plugin_sched_switch.c b/plugins/plugin_sched_switch.c index 8752cae..e0986ac 100644 --- a/plugins/plugin_sched_switch.c +++ b/plugins/plugin_sched_switch.c @@ -11,7 +11,7 @@ static void write_state(struct trace_seq *s, int val) { - const char states[] = "SDTtZXxW"; + const char states[] = "SDTtXZPI"; int found = 0; int i; -- 2.41.0