[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190725184253.21160-8-lpf.vector@gmail.com>
Date: Fri, 26 Jul 2019 02:42:50 +0800
From: Pengfei Li <lpf.vector@...il.com>
To: akpm@...ux-foundation.org
Cc: mgorman@...hsingularity.net, mhocko@...e.com, vbabka@...e.cz,
cai@....pw, aryabinin@...tuozzo.com, osalvador@...e.de,
rostedt@...dmis.org, mingo@...hat.com,
pavel.tatashin@...rosoft.com, rppt@...ux.ibm.com,
linux-kernel@...r.kernel.org, linux-mm@...ck.org,
Pengfei Li <lpf.vector@...il.com>
Subject: [PATCH 07/10] trace/events/compaction: make "order" unsigned int
Make the same type as "compact_control->order".
Signed-off-by: Pengfei Li <lpf.vector@...il.com>
---
include/trace/events/compaction.h | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/include/trace/events/compaction.h b/include/trace/events/compaction.h
index e5bf6ee4e814..1e1e74f6d128 100644
--- a/include/trace/events/compaction.h
+++ b/include/trace/events/compaction.h
@@ -170,14 +170,14 @@ TRACE_EVENT(mm_compaction_end,
TRACE_EVENT(mm_compaction_try_to_compact_pages,
TP_PROTO(
- int order,
+ unsigned int order,
gfp_t gfp_mask,
int prio),
TP_ARGS(order, gfp_mask, prio),
TP_STRUCT__entry(
- __field(int, order)
+ __field(unsigned int, order)
__field(gfp_t, gfp_mask)
__field(int, prio)
),
@@ -188,7 +188,7 @@ TRACE_EVENT(mm_compaction_try_to_compact_pages,
__entry->prio = prio;
),
- TP_printk("order=%d gfp_mask=%s priority=%d",
+ TP_printk("order=%u gfp_mask=%s priority=%d",
__entry->order,
show_gfp_flags(__entry->gfp_mask),
__entry->prio)
@@ -197,7 +197,7 @@ TRACE_EVENT(mm_compaction_try_to_compact_pages,
DECLARE_EVENT_CLASS(mm_compaction_suitable_template,
TP_PROTO(struct zone *zone,
- int order,
+ unsigned int order,
int ret),
TP_ARGS(zone, order, ret),
@@ -205,7 +205,7 @@ DECLARE_EVENT_CLASS(mm_compaction_suitable_template,
TP_STRUCT__entry(
__field(int, nid)
__field(enum zone_type, idx)
- __field(int, order)
+ __field(unsigned int, order)
__field(int, ret)
),
@@ -216,7 +216,7 @@ DECLARE_EVENT_CLASS(mm_compaction_suitable_template,
__entry->ret = ret;
),
- TP_printk("node=%d zone=%-8s order=%d ret=%s",
+ TP_printk("node=%d zone=%-8s order=%u ret=%s",
__entry->nid,
__print_symbolic(__entry->idx, ZONE_TYPE),
__entry->order,
@@ -226,7 +226,7 @@ DECLARE_EVENT_CLASS(mm_compaction_suitable_template,
DEFINE_EVENT(mm_compaction_suitable_template, mm_compaction_finished,
TP_PROTO(struct zone *zone,
- int order,
+ unsigned int order,
int ret),
TP_ARGS(zone, order, ret)
@@ -235,7 +235,7 @@ DEFINE_EVENT(mm_compaction_suitable_template, mm_compaction_finished,
DEFINE_EVENT(mm_compaction_suitable_template, mm_compaction_suitable,
TP_PROTO(struct zone *zone,
- int order,
+ unsigned int order,
int ret),
TP_ARGS(zone, order, ret)
--
2.21.0
Powered by blists - more mailing lists