From 0198c6d0fa162fd02f9b4ab1a5595c80a7b7a140 Mon Sep 17 00:00:00 2001 From: Sebastian Lenzlinger <74497638+sebaschi@users.noreply.github.com> Date: Sun, 11 Jun 2023 15:24:39 +0200 Subject: [PATCH] Delete funcall_trace2.stp --- src/funcall_trace2.stp | 58 ------------------------------------------ 1 file changed, 58 deletions(-) delete mode 100644 src/funcall_trace2.stp diff --git a/src/funcall_trace2.stp b/src/funcall_trace2.stp deleted file mode 100644 index 4f38637..0000000 --- a/src/funcall_trace2.stp +++ /dev/null @@ -1,58 +0,0 @@ -#! /usr/bin/env stap -# -# Copyright (C) 2010-2015 Red Hat, Inc. -# Written by William Cohen -# -# The linetimes.stp script takes two arguments: where to find the function -# and the function name. linetimes.stp will instrument each line in the -# function. It will print out the number of times that the function is -# called, a table with the average and maximum time each line takes, -# and control flow information when the script exits. -# -# For example all the lines of the do_unlinkat function: -# -# stap linetimes.stp kernel do_unlinkat - -global calls, times, last_pp, region, cfg - -probe $1.function(@2).call { calls <<< 1 } -probe $1.function(@2).return { - t = gettimeofday_us() - s = times[tid()] - if (s) { - e = t - s - region[last_pp[tid()]] <<< e - cfg[last_pp[tid()], pp()] <<< 1 - } - delete times[tid()] - delete last_pp[tid()] -} - -probe $1.statement(@2 "@*:*") { - t = gettimeofday_us() - s = times[tid()] - if (s) { - e = t - s - region[last_pp[tid()]] <<< e - cfg[last_pp[tid()], pp()] <<< 1 - } - times[tid()] = t - last_pp[tid()] = pp() -} - -probe end { - printf("\n%s %s call count: %d\n", @1, @2, @count(calls)); - printf("\n%-58s %10s %10s\n", "region", "avg(us)", "max(us)"); - foreach (p+ in region) { - printf("%-58s %10d %10d\n", p, @avg(region[p]), @max(region[p])); - } - - printf("\n\ncontrol flow graph information\n") - printf("from\n\tto\n=======================\n") - foreach ([src+] in region) { - printf("%-s\n", src) - foreach ([s,dest+] in cfg[src,*]) { # slice for all dest's - printf("\t%-s %d\n", dest, @count(cfg[src,dest])); - } - } -}