Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3608164pxb; Mon, 24 Jan 2022 13:25:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJxd0EIp+RDVLtG3oInF77vVy5KInXCrBbgeBdjPVfRr2b0lhDtHE2IEYhKa1x7k9ULY7KUS X-Received: by 2002:a63:5a51:: with SMTP id k17mr12800551pgm.129.1643059506010; Mon, 24 Jan 2022 13:25:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643059506; cv=none; d=google.com; s=arc-20160816; b=kswbWPAEW+W0H9xmYkY2eKAXmRmK34loXY+izGIwZ3bIrN2ImCyesoBT/39gZGSFa/ LvQ3U17E8OXyG+7Los4lywJWvy11oAoCuHRtZbwBwUi8GLBBEh7nltq0TUlmNVjpA8MI zzQGNICy/5vk4yey5boOUIybj8UCj33Xojct7KsicRIsVUJB+riyVTV+itjS8fRY0yiC ff5vHZMytCp0Wdgm34eRgm1qWuIyAGP9CPqLZSZm0M7uIV5RnQl+MIeIcbjtLvpFpTj4 R5i14PF+G7wTDzAZ2agykYhtVwpcVx4bQHsROaixj9rROvuw3IOOvTSojNkKgUG942iw TW1A== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=1HUwN5Qgfk7PP81d1hAhkxFpJ0K8LeTuQH+V/l6Q368=; b=FmJ/OOD8LgUHnBcTVg/M3AAeorbH+Rl70ZjyjUf/mKDY2C29xcsr2TRdcF1BQClPxR PtstTOW0PwR8tqlW51HCD5/Zji8VTPSyvhk+qKBMLGiVGKNCXZr5BA+6p9U+erBExovh hPzQAyfe6IPDTefirFwVkEq7iqFnmOa0W/g+J/IslhGP+CrIYpm2gmxokVBz+v0VsPJL 5HTkkEseB2M6snxnrSiawEo1RfuuL5FNiiefnALncHkpx86RB71VlqLZypyCB2kvLClP RUbESbGnyB4C5FaveQWN9apegN/DxhyQOM8A0z1RFA8H2jc+Zn/BK3aNPZ/IX/pSUEDQ PZIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=omRAysdz; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v69si7523564pgd.626.2022.01.24.13.24.54; Mon, 24 Jan 2022 13:25:05 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b=omRAysdz; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1443131AbiAXU4V (ORCPT + 99 others); Mon, 24 Jan 2022 15:56:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1385574AbiAXUdg (ORCPT ); Mon, 24 Jan 2022 15:33:36 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76D39C07E2AB; Mon, 24 Jan 2022 11:46:49 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 15C7261031; Mon, 24 Jan 2022 19:46:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DF094C340E7; Mon, 24 Jan 2022 19:46:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643053608; bh=v6/FXpNGzXAE6TYf3fSLBuAkE9l9oQwNd47fnT/FRjA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=omRAysdzy2nY/CC5ca+U1Sfgyzt+CE2lyN/T5Ky9CWbjXrYOs/cQvgAbqYDiOL84o X3Rf4WEFChFi/zfwoG/3KMZtvP7sMuKbtfLbUXaXoXDDVcDrTsXWA2txFx+EF0UarK nghcLMpLWMlpZ7siEwoU4tA6sJcSQ8Y/pHJq5P3g= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, William Kucharski , "Steven Rostedt (VMware)" , Tejun Heo , Sasha Levin Subject: [PATCH 5.10 120/563] cgroup: Trace event cgroup id fields should be u64 Date: Mon, 24 Jan 2022 19:38:05 +0100 Message-Id: <20220124184028.564699291@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184024.407936072@linuxfoundation.org> References: <20220124184024.407936072@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: William Kucharski [ Upstream commit e14da77113bb890d7bf9e5d17031bdd476a7ce5e ] Various trace event fields that store cgroup IDs were declared as ints, but cgroup_id(() returns a u64 and the structures and associated TP_printk() calls were not updated to reflect this. Fixes: 743210386c03 ("cgroup: use cgrp->kn->id as the cgroup ID") Signed-off-by: William Kucharski Reviewed-by: Steven Rostedt (VMware) Signed-off-by: Tejun Heo Signed-off-by: Sasha Levin --- include/trace/events/cgroup.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/trace/events/cgroup.h b/include/trace/events/cgroup.h index 7f42a3de59e6b..dd7d7c9efecdf 100644 --- a/include/trace/events/cgroup.h +++ b/include/trace/events/cgroup.h @@ -59,8 +59,8 @@ DECLARE_EVENT_CLASS(cgroup, TP_STRUCT__entry( __field( int, root ) - __field( int, id ) __field( int, level ) + __field( u64, id ) __string( path, path ) ), @@ -71,7 +71,7 @@ DECLARE_EVENT_CLASS(cgroup, __assign_str(path, path); ), - TP_printk("root=%d id=%d level=%d path=%s", + TP_printk("root=%d id=%llu level=%d path=%s", __entry->root, __entry->id, __entry->level, __get_str(path)) ); @@ -126,8 +126,8 @@ DECLARE_EVENT_CLASS(cgroup_migrate, TP_STRUCT__entry( __field( int, dst_root ) - __field( int, dst_id ) __field( int, dst_level ) + __field( u64, dst_id ) __field( int, pid ) __string( dst_path, path ) __string( comm, task->comm ) @@ -142,7 +142,7 @@ DECLARE_EVENT_CLASS(cgroup_migrate, __assign_str(comm, task->comm); ), - TP_printk("dst_root=%d dst_id=%d dst_level=%d dst_path=%s pid=%d comm=%s", + TP_printk("dst_root=%d dst_id=%llu dst_level=%d dst_path=%s pid=%d comm=%s", __entry->dst_root, __entry->dst_id, __entry->dst_level, __get_str(dst_path), __entry->pid, __get_str(comm)) ); @@ -171,8 +171,8 @@ DECLARE_EVENT_CLASS(cgroup_event, TP_STRUCT__entry( __field( int, root ) - __field( int, id ) __field( int, level ) + __field( u64, id ) __string( path, path ) __field( int, val ) ), @@ -185,7 +185,7 @@ DECLARE_EVENT_CLASS(cgroup_event, __entry->val = val; ), - TP_printk("root=%d id=%d level=%d path=%s val=%d", + TP_printk("root=%d id=%llu level=%d path=%s val=%d", __entry->root, __entry->id, __entry->level, __get_str(path), __entry->val) ); -- 2.34.1