summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorShivank Sharma <shivanksharma2376543@gmail.com>2026-07-16 19:45:45 +0530
committerAndrew Morton <akpm@linux-foundation.org>2026-07-26 22:51:10 -0700
commiteb2ef2e27692e10029aacd1730173dcbf326d83c (patch)
tree8d28166913b3ab27f06fe00b397311b5b6813b8f /tools
parent7258f3ee4af3cd9671cf1da6157516bc34720592 (diff)
downloadlinux-next-eb2ef2e27692e10029aacd1730173dcbf326d83c.tar.gz
linux-next-eb2ef2e27692e10029aacd1730173dcbf326d83c.zip
tools/accounting: fix macro typos in getdelays
Correct the spelling of PRINT_FILED_DELAY and PRINT_FILED_DELAY_WITH_TS to PRINT_FIELD_DELAY and PRINT_FIELD_DELAY_WITH_TS respectively. This resolves typo naming errors across the macro definitions and their matching inside print_delayacct(). Link: https://lore.kernel.org/20260716141545.1292951-1-shivanksharma2376543@gmail.com Signed-off-by: Shivank Sharma <shivanksharma2376543@gmail.com> Cc: Fan Yu <fan.yu9@zte.com.cn> Cc: Wang Yaxin <wang.yaxin@zte.com.cn> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/accounting/getdelays.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/tools/accounting/getdelays.c b/tools/accounting/getdelays.c
index 6ac30d4f96f7..263ded4567fd 100644
--- a/tools/accounting/getdelays.c
+++ b/tools/accounting/getdelays.c
@@ -307,7 +307,7 @@ static const char *format_timespec(struct __kernel_timespec *ts)
average_ms((double)(t)->cpu_delay_total, (t)->cpu_count)); \
} \
} while (0)
-#define PRINT_FILED_DELAY(name, version, t, count, total, max, min) \
+#define PRINT_FIELD_DELAY(name, version, t, count, total, max, min) \
do { \
if (version >= 16) { \
printf("%-10s%15s%15s%15s%15s%15s\n", \
@@ -329,7 +329,7 @@ static const char *format_timespec(struct __kernel_timespec *ts)
} \
} while (0)
-#define PRINT_FILED_DELAY_WITH_TS(name, version, t, count, total, max, min, max_ts) \
+#define PRINT_FIELD_DELAY_WITH_TS(name, version, t, count, total, max, min, max_ts) \
do { \
if (version >= 17) { \
printf("%-10s%15s%15s%15s%15s%15s%25s\n", \
@@ -370,71 +370,71 @@ static void print_delayacct(struct taskstats *t)
/* Use new macro with timestamp support for version >= 17 */
if (t->version >= 17) {
- PRINT_FILED_DELAY_WITH_TS("IO", t->version, t,
+ PRINT_FIELD_DELAY_WITH_TS("IO", t->version, t,
blkio_count, blkio_delay_total,
blkio_delay_max, blkio_delay_min, blkio_delay_max_ts);
- PRINT_FILED_DELAY_WITH_TS("SWAP", t->version, t,
+ PRINT_FIELD_DELAY_WITH_TS("SWAP", t->version, t,
swapin_count, swapin_delay_total,
swapin_delay_max, swapin_delay_min, swapin_delay_max_ts);
- PRINT_FILED_DELAY_WITH_TS("RECLAIM", t->version, t,
+ PRINT_FIELD_DELAY_WITH_TS("RECLAIM", t->version, t,
freepages_count, freepages_delay_total,
freepages_delay_max, freepages_delay_min, freepages_delay_max_ts);
- PRINT_FILED_DELAY_WITH_TS("THRASHING", t->version, t,
+ PRINT_FIELD_DELAY_WITH_TS("THRASHING", t->version, t,
thrashing_count, thrashing_delay_total,
thrashing_delay_max, thrashing_delay_min, thrashing_delay_max_ts);
if (t->version >= 11) {
- PRINT_FILED_DELAY_WITH_TS("COMPACT", t->version, t,
+ PRINT_FIELD_DELAY_WITH_TS("COMPACT", t->version, t,
compact_count, compact_delay_total,
compact_delay_max, compact_delay_min, compact_delay_max_ts);
}
if (t->version >= 13) {
- PRINT_FILED_DELAY_WITH_TS("WPCOPY", t->version, t,
+ PRINT_FIELD_DELAY_WITH_TS("WPCOPY", t->version, t,
wpcopy_count, wpcopy_delay_total,
wpcopy_delay_max, wpcopy_delay_min, wpcopy_delay_max_ts);
}
if (t->version >= 14) {
- PRINT_FILED_DELAY_WITH_TS("IRQ", t->version, t,
+ PRINT_FIELD_DELAY_WITH_TS("IRQ", t->version, t,
irq_count, irq_delay_total,
irq_delay_max, irq_delay_min, irq_delay_max_ts);
}
} else {
/* Use original macro for older versions */
- PRINT_FILED_DELAY("IO", t->version, t,
+ PRINT_FIELD_DELAY("IO", t->version, t,
blkio_count, blkio_delay_total,
blkio_delay_max, blkio_delay_min);
- PRINT_FILED_DELAY("SWAP", t->version, t,
+ PRINT_FIELD_DELAY("SWAP", t->version, t,
swapin_count, swapin_delay_total,
swapin_delay_max, swapin_delay_min);
- PRINT_FILED_DELAY("RECLAIM", t->version, t,
+ PRINT_FIELD_DELAY("RECLAIM", t->version, t,
freepages_count, freepages_delay_total,
freepages_delay_max, freepages_delay_min);
- PRINT_FILED_DELAY("THRASHING", t->version, t,
+ PRINT_FIELD_DELAY("THRASHING", t->version, t,
thrashing_count, thrashing_delay_total,
thrashing_delay_max, thrashing_delay_min);
if (t->version >= 11) {
- PRINT_FILED_DELAY("COMPACT", t->version, t,
+ PRINT_FIELD_DELAY("COMPACT", t->version, t,
compact_count, compact_delay_total,
compact_delay_max, compact_delay_min);
}
if (t->version >= 13) {
- PRINT_FILED_DELAY("WPCOPY", t->version, t,
+ PRINT_FIELD_DELAY("WPCOPY", t->version, t,
wpcopy_count, wpcopy_delay_total,
wpcopy_delay_max, wpcopy_delay_min);
}
if (t->version >= 14) {
- PRINT_FILED_DELAY("IRQ", t->version, t,
+ PRINT_FIELD_DELAY("IRQ", t->version, t,
irq_count, irq_delay_total,
irq_delay_max, irq_delay_min);
}