summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--stapfuncs.5.in3
-rw-r--r--tapset/ChangeLog6
-rw-r--r--tapset/context.stp4
4 files changed, 16 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index bcd82b80..1f5f790f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2006-02-17 Frank Ch. Eigler <fche@elastic.org>
+
+ * stapfuncs.5.in (cpu): Document contextinfo function.
+
2006-02-15 Frank Ch. Eigler <fche@elastic.org>
* translate.cxx (varlock*): Removed now unnecessary class.
diff --git a/stapfuncs.5.in b/stapfuncs.5.in
index 9c1a03a3..04ada825 100644
--- a/stapfuncs.5.in
+++ b/stapfuncs.5.in
@@ -105,6 +105,9 @@ Return the number of seconds since the UNIX epoch.
.SS CONTEXTINFO
.TP
+cpu:long ()
+Return the current cpu number.
+.TP
execname:string ()
Return the name of the current process.
.TP
diff --git a/tapset/ChangeLog b/tapset/ChangeLog
index aea292b5..7dec4528 100644
--- a/tapset/ChangeLog
+++ b/tapset/ChangeLog
@@ -1,6 +1,10 @@
+2006-02-17 Frank Ch. Eigler <fche@elastic.org>
+
+ * context.stp (cpu): Clone undocumented cpuid() function.
+
2006-02-14 Martin Hunt <hunt@redhat.com>
- * syscalls.stp: MOre updates.
+ * syscalls.stp: More updates.
2006-02-14 Frank Ch. Eigler <fche@elastic.org>
diff --git a/tapset/context.stp b/tapset/context.stp
index 44b52e1c..98571d9e 100644
--- a/tapset/context.stp
+++ b/tapset/context.stp
@@ -69,6 +69,10 @@ function cpuid:long () %{
THIS->__retvalue = current->thread_info->cpu;
%}
+function cpu:long () %{
+ THIS->__retvalue = current->thread_info->cpu; /* smp_processor_id()? */
+%}
+
function print_stack(stk:string) %{
char *ptr = THIS->stk;
char *tok = strsep(&ptr, " ");