From dd29e9af0d331d08a8a42837299f35d4a4f5a9e3 Mon Sep 17 00:00:00 2001 From: leonzzhu Date: Thu, 7 Jul 2022 11:53:43 +0800 Subject: [PATCH] irq_off: modify -L(latenct) to --than parameter Signed-off-by: leonzzhu --- irq-off.c | 2 +- monitor.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/irq-off.c b/irq-off.c index 6263002..2d6c185 100644 --- a/irq-off.c +++ b/irq-off.c @@ -130,7 +130,7 @@ static void irq_off_sample(union perf_event *event, int instance) ctx.counter[data->cpu_entry.cpu] = data->counter; } - if (counter > ctx.env->latency * 1000UL + 1000UL) { + if (counter > ctx.env->greater_than) { print_time(stdout); printf("cpu %d pid %d tid %d irq-off %lu ns\n", data->cpu_entry.cpu, data->tid_entry.pid, data->tid_entry.tid, counter); if (ctx.env->callchain) { diff --git a/monitor.c b/monitor.c index a4db62c..31f92ac 100644 --- a/monitor.c +++ b/monitor.c @@ -120,7 +120,7 @@ const char argp_program_doc[] = " perf-prof ldlat-stores [-T trigger]\n" "Use Fewer Profilers:\n" " perf-prof split-lock [-T trigger] [-G] [--test]\n" -" perf-prof irq-off [-L lat] [-g] [--precise]\n" +" perf-prof irq-off [--than ns] [-g] [--precise]\n" " perf-prof signal [--filter comm] [-g]\n" " perf-prof watchdog [-F freq] [-g]\n" " perf-prof llcstat\n"