summaryrefslogtreecommitdiffstats
path: root/testsuite/buildok
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/buildok')
-rw-r--r--testsuite/buildok/pr10678.stp4
-rwxr-xr-xtestsuite/buildok/proc_mem.stp13
-rw-r--r--testsuite/buildok/scheduler-test-tracepoints.stp51
3 files changed, 68 insertions, 0 deletions
diff --git a/testsuite/buildok/pr10678.stp b/testsuite/buildok/pr10678.stp
new file mode 100644
index 00000000..4ce8fb99
--- /dev/null
+++ b/testsuite/buildok/pr10678.stp
@@ -0,0 +1,4 @@
+#! stap -p4
+
+# The ne2k_pci module dwarf refers to both kernel and 8390 module symbols
+probe module("ne2k_pci").function("ne2k_pci_open") { log($$parms); } \ No newline at end of file
diff --git a/testsuite/buildok/proc_mem.stp b/testsuite/buildok/proc_mem.stp
new file mode 100755
index 00000000..8fc2512a
--- /dev/null
+++ b/testsuite/buildok/proc_mem.stp
@@ -0,0 +1,13 @@
+#! stap -p4
+
+probe begin {
+ printf("%d\n", proc_mem_size());
+ printf("%d\n", proc_mem_rss());
+ printf("%d\n", proc_mem_shr());
+ printf("%d\n", proc_mem_txt());
+ printf("%d\n", proc_mem_data());
+ printf("%d\n", mem_page_size())
+ printf("%s\n", bytes_to_string(0));
+ printf("%s\n", pages_to_string(0));
+ printf("%s\n", proc_mem_string());
+}
diff --git a/testsuite/buildok/scheduler-test-tracepoints.stp b/testsuite/buildok/scheduler-test-tracepoints.stp
new file mode 100644
index 00000000..a660c367
--- /dev/null
+++ b/testsuite/buildok/scheduler-test-tracepoints.stp
@@ -0,0 +1,51 @@
+#! stap -up4
+
+//Tests if all probes in the scheduler tapset are resolvable.
+
+probe scheduler.kthread_stop {
+ printf("pid = %d, priority = %d\n", thread_pid, thread_priority);
+}
+
+probe scheduler.kthread_stop.return {
+ printf("return value = %d\n", return_value);
+}
+
+probe scheduler.wait_task {
+ printf("pid = %d, priority = %d\n", task_pid, task_priority);
+}
+
+probe scheduler.wakeup {
+ printf("pid = %d, priority = %d\n, state = %d, cpu = %d, tid = %d\n",task_pid, task_priority, task_state, task_cpu, task_tid);
+}
+
+probe scheduler.wakeup_new {
+ printf("pid = %d, priority = %d, state = %d, cpu = %d, tid = %d\n", task_pid, task_priority, task_state, task_cpu, task_tid);
+}
+
+probe scheduler.ctxswitch {
+ printf("prev_pid = %d, prev_priority = %d, prev_state = %d, prev_task_name = %s, prev_tid = %d, next_pid = %d, next_priority = %d, next_state = %d, next_task_name = %s, next_tid = %d\n", prev_pid, prev_priority, prevtsk_state, prev_task_name, prev_tid, next_pid, next_priority, nexttsk_state, next_task_name, next_tid);
+}
+
+probe scheduler.migrate {
+ printf("pid = %d, priority = %d, original cpu = %d destination cpu = %d\n", pid, priority, cpu_from, cpu_to);
+}
+
+probe scheduler.process_free {
+ printf("pid = %d, priority = %d\n", pid, priority);
+}
+
+probe scheduler.process_exit {
+ printf("pid = %d, priority = %d\n", pid, priority);
+}
+
+probe scheduler.process_wait {
+ printf("pid = %d\n", pid);
+}
+
+probe scheduler.process_fork {
+ printf("parent pid = %d, child pid = %d\n", parent_pid, child_pid);
+}
+
+probe scheduler.signal_send {
+ printf("pid = %d, signal = %d\n", pid, signal_number);
+}