Skip to contentSkip to conversation

mm: vmscan: drop zone id from kswapd tracepoints

PATCH New Yafang Shao 1 participant 1 message Mar 13, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 mm: vmscan: drop zone id from kswapd tracepoints

It is not clear how is the zone id useful in kswapd tracepoints and the id itself is not really easy to process because it depends on the configuration (available zones). Let's drop the id for now. If somebody really needs that information the zone name should be used instead.

---
 include/trace/events/vmscan.h | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
include/trace/events/vmscan.h +4 -3
index a1cb913..d3f029f 100644
@@ -73,7 +73,9 @@
 		__entry->order	= order;
 	),
 
-	TP_printk("nid=%d zid=%d order=%d", __entry->nid, __entry->zid, __entry->order)
+	TP_printk("nid=%d order=%d",
+		__entry->nid,
+		__entry->order)
 );
 
 TRACE_EVENT(mm_vmscan_wakeup_kswapd,
@@ -96,9 +98,8 @@
 		__entry->gfp_flags	= gfp_flags;
 	),
 
-	TP_printk("nid=%d zid=%d order=%d gfp_flags=%s",
+	TP_printk("nid=%d order=%d gfp_flags=%s",
 		__entry->nid,
-		__entry->zid,
 		__entry->order,
 		show_gfp_flags(__entry->gfp_flags))
 );
Signature · 1 line
1.8.3.1