lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <67816749b9eaa_177894294ad@iweiny-mobl.notmuch>
Date: Fri, 10 Jan 2025 12:30:33 -0600
From: Ira Weiny <ira.weiny@...el.com>
To: <shiju.jose@...wei.com>, <dave.jiang@...el.com>,
	<dan.j.williams@...el.com>, <jonathan.cameron@...wei.com>,
	<alison.schofield@...el.com>, <nifan.cxl@...il.com>,
	<vishal.l.verma@...el.com>, <ira.weiny@...el.com>, <dave@...olabs.net>,
	<linux-cxl@...r.kernel.org>
CC: <linux-kernel@...r.kernel.org>, <linuxarm@...wei.com>,
	<tanxiaofei@...wei.com>, <prime.zeng@...ilicon.com>, <shiju.jose@...wei.com>
Subject: Re: [PATCH v5 3/6] cxl/events: Update General Media Event Record to
 CXL spec rev 3.1

shiju.jose@ wrote:
> From: Shiju Jose <shiju.jose@...wei.com>
> 

[snip]

>  
>  TRACE_EVENT(cxl_general_media,
> @@ -353,6 +402,7 @@ TRACE_EVENT(cxl_general_media,
>  		__field(u64, dpa)
>  		__field(u8, descriptor)
>  		__field(u8, type)
> +		__field(u8, sub_type)
>  		__field(u8, transaction_type)
>  		__field(u8, channel)
>  		__field(u32, device)
> @@ -364,6 +414,8 @@ TRACE_EVENT(cxl_general_media,
>  		__field(u8, rank)
>  		__field(u8, dpa_flags)
>  		__string(region_name, cxlr ? dev_name(&cxlr->dev) : "")
> +		__field(u8, cme_threshold_ev_flags)
> +		__field(u32, cme_count)
>  	),
>  

Reorder these as well to pack the record.

Ira

diff --git a/drivers/cxl/core/trace.h b/drivers/cxl/core/trace.h
index 241c10596f4d..39e83b8543f3 100644
--- a/drivers/cxl/core/trace.h
+++ b/drivers/cxl/core/trace.h
@@ -402,7 +402,6 @@ TRACE_EVENT(cxl_general_media,
                __field(u64, dpa)
                __field(u8, descriptor)
                __field(u8, type)
-               __field(u8, sub_type)
                __field(u8, transaction_type)
                __field(u8, channel)
                __field(u32, device)
@@ -413,9 +412,10 @@ TRACE_EVENT(cxl_general_media,
                __field(u16, validity_flags)
                __field(u8, rank)
                __field(u8, dpa_flags)
-               __string(region_name, cxlr ? dev_name(&cxlr->dev) : "")
-               __field(u8, cme_threshold_ev_flags)
                __field(u32, cme_count)
+               __field(u8, sub_type)
+               __field(u8, cme_threshold_ev_flags)
+               __string(region_name, cxlr ? dev_name(&cxlr->dev) : "")
        ),
 
        TP_fast_assign(

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ