From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CDA34384234 for ; Thu, 16 Apr 2026 08:41:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776328911; cv=none; b=m5j6FiyI4Jf6owCjdALNQ9PvelH1wS3rYFnM19Qn9IKWbzTz4YpalNn2Lc8NKmeVwrC/fYsmQ55Y8oi+Zsy7HEX33ixHndXyqgA/vOjOq+5GFzL2tg+Q06lbrKFVpHwXcI3S6ywk2i0tUZsvY809Z6oypB1puTxnWdngISnW9A8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776328911; c=relaxed/simple; bh=wuG5fRqyyeq7ZFA2zBqw8azLfs+ap3Y3o5BeeK/+Awg=; h=Message-ID:Date:From:To:Cc:Subject:References:MIME-Version: Content-Type; b=sIU2V5MUjZGQ4Io5Mv7i5mQCeGuRtFuzILymCwRTAVl0ma0iKmiySiMUJOroRgMcc0tObcKYzCG/N4/0tJrIWmNcsFVnYJpCf5wn4pVTYFUl10sm/Ba6bMfrZlf+zmaKu9R666xjBZjrMumBdJuDOvjY+ZfYbKIoz1SmZxibiXc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Vq63zsGh; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Vq63zsGh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8FF9AC2BCB5; Thu, 16 Apr 2026 08:41:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1776328911; bh=wuG5fRqyyeq7ZFA2zBqw8azLfs+ap3Y3o5BeeK/+Awg=; h=Date:From:To:Cc:Subject:References:From; b=Vq63zsGhv85ZclXFWCBFgP2UgHC4sVC2xyMTFBTOqQliGpUMn+idJHfOtPtT9lylS dw4ouuJt2sJ80u0JhRL9v2GB4qNSp1XHtyuyJmGvsT6TycwQOunSUAuE3P3jPMMdpL vGQ9zRAZkmcfangkbWQ+YDCNLNi/L3biYEFoCdkXquCpoGSutYkNdyRbWExr06w2Wr 85ivFCfKpxU3J8p60KQj4iiDCpr94rMN27Gtt9WCFHjUiM1AeuY41BQqBQMgEx0H6R bgG4fx5mpZ5uSbPGp+rHrrSNbnuYVEBz8pTaV1AyqR+mcwtSRg2mC5yi/5hc0JnoIw N9LvIELP+dW1g== Received: from rostedt by gandalf with local (Exim 4.99.1) (envelope-from ) id 1wDIJq-00000005auw-0DWv; Thu, 16 Apr 2026 04:43:26 -0400 Message-ID: <20260416084325.915589726@kernel.org> User-Agent: quilt/0.69 Date: Thu, 16 Apr 2026 04:42:55 -0400 From: Steven Rostedt To: linux-kernel@vger.kernel.org Cc: Masami Hiramatsu , Mark Rutland , Mathieu Desnoyers , Andrew Morton , CaoRuichuang Subject: [for-next][PATCH 1/5] tracing: Report ipi_raise target CPUs as cpumask References: <20260416084254.980129867@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 From: CaoRuichuang Bugzilla 217447 points out that ftrace bitmask fields still use the legacy dynamic-array format, which makes trace consumers treat them as unsigned long arrays instead of bitmaps. This is visible in the ipi events today: ipi_send_cpumask already reports its CPU mask as '__data_loc cpumask_t', but ipi_raise still exposes target_cpus as '__data_loc unsigned long[]'. Switch ipi_raise to __cpumask() and the matching helpers so its tracefs format matches the existing cpumask representation used by the other ipi event. The underlying storage size stays the same, but trace data consumers can now recognize the field as a cpumask directly. Link: https://patch.msgid.link/20260406162434.40767-1-create0818@163.com Link: https://bugzilla.kernel.org/show_bug.cgi?id=217447 Signed-off-by: CaoRuichuang Signed-off-by: Steven Rostedt (Google) --- include/trace/events/ipi.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/trace/events/ipi.h b/include/trace/events/ipi.h index 9912f0ded81d..fae4f8eac411 100644 --- a/include/trace/events/ipi.h +++ b/include/trace/events/ipi.h @@ -68,16 +68,16 @@ TRACE_EVENT(ipi_raise, TP_ARGS(mask, reason), TP_STRUCT__entry( - __bitmask(target_cpus, nr_cpumask_bits) + __cpumask(target_cpus) __field(const char *, reason) ), TP_fast_assign( - __assign_bitmask(target_cpus, cpumask_bits(mask), nr_cpumask_bits); + __assign_cpumask(target_cpus, cpumask_bits(mask)); __entry->reason = reason; ), - TP_printk("target_mask=%s (%s)", __get_bitmask(target_cpus), __entry->reason) + TP_printk("target_mask=%s (%s)", __get_cpumask(target_cpus), __entry->reason) ); DECLARE_EVENT_CLASS(ipi_handler, -- 2.51.0