From c39d889155d4c9365bd27691d22a92c447ced976 Mon Sep 17 00:00:00 2001 From: Stan Cox Date: Thu, 29 May 2008 14:46:38 -0400 Subject: SW5106 Remove old map and histogram formatting code --- runtime/probes/tasklet/README | 9 -------- runtime/probes/tasklet/build | 2 -- runtime/probes/tasklet/stp_tasklet.c | 40 ------------------------------------ runtime/probes/tasklet/targets | 1 - 4 files changed, 52 deletions(-) delete mode 100644 runtime/probes/tasklet/README delete mode 100755 runtime/probes/tasklet/build delete mode 100644 runtime/probes/tasklet/stp_tasklet.c delete mode 100644 runtime/probes/tasklet/targets (limited to 'runtime/probes/tasklet') diff --git a/runtime/probes/tasklet/README b/runtime/probes/tasklet/README deleted file mode 100644 index 8507ad9b..00000000 --- a/runtime/probes/tasklet/README +++ /dev/null @@ -1,9 +0,0 @@ -/** @dir tasklet -Sample probe in a tasklet. Useful for interrupt context testing. - -\verbatim -> make -> ./stp stp_tasklet.ko -\endverbatim - -*/ diff --git a/runtime/probes/tasklet/build b/runtime/probes/tasklet/build deleted file mode 100755 index f3e83244..00000000 --- a/runtime/probes/tasklet/build +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/bash -../build_probe $* diff --git a/runtime/probes/tasklet/stp_tasklet.c b/runtime/probes/tasklet/stp_tasklet.c deleted file mode 100644 index f47fea9e..00000000 --- a/runtime/probes/tasklet/stp_tasklet.c +++ /dev/null @@ -1,40 +0,0 @@ -/* Framework for putting a jprobe in a tasklet. */ -/* Useful for testing probes in interrupt context. */ -/* Doesn't do anything useful as is. Put test code in the inst func */ - -#define STP_NETLINK_ONLY -#define STP_NUM_STRINGS 1 - -#include "runtime.h" -#include "probes.c" - -MODULE_DESCRIPTION("test jprobes of tasklets"); -MODULE_AUTHOR("Martin Hunt "); - -void inst__rcu_process_callbacks(struct rcu_ctrlblk *rcp, - struct rcu_state *rsp, struct rcu_data *rdp) -{ - _stp_printf ("count=%d irqs_disabled=%d in_interrupt=%d in_irq=%d", - preempt_count(), irqs_disabled(), in_interrupt(), in_irq()); - _stp_print_flush(); - jprobe_return(); -} - -static struct jprobe stp_probes[] = { - { - .kp.addr = (kprobe_opcode_t *)"__rcu_process_callbacks", - .entry = (kprobe_opcode_t *) inst__rcu_process_callbacks - }, -}; -#define MAX_STP_PROBES (sizeof(stp_probes)/sizeof(struct jprobe)) - -int probe_start(void) -{ - return _stp_register_jprobes (stp_probes, MAX_STP_PROBES); -} - -void probe_exit (void) -{ - _stp_unregister_jprobes (stp_probes, MAX_STP_PROBES); -} - diff --git a/runtime/probes/tasklet/targets b/runtime/probes/tasklet/targets deleted file mode 100644 index 236dbd95..00000000 --- a/runtime/probes/tasklet/targets +++ /dev/null @@ -1 +0,0 @@ -stp_tasklet -- cgit