diff options
author | fche <fche> | 2006-02-17 17:56:08 +0000 |
---|---|---|
committer | fche <fche> | 2006-02-17 17:56:08 +0000 |
commit | 2f6e24e1b6b19d8b56da4f7d1120d36cbf191098 (patch) | |
tree | 7e8c03091cdb036c56673a7d7db6c390ec43d760 | |
parent | a7aa967a4f95ba9c112abcd783b282b50a66ebc5 (diff) | |
download | systemtap-steved-2f6e24e1b6b19d8b56da4f7d1120d36cbf191098.tar.gz systemtap-steved-2f6e24e1b6b19d8b56da4f7d1120d36cbf191098.tar.xz systemtap-steved-2f6e24e1b6b19d8b56da4f7d1120d36cbf191098.zip |
2006-02-17 Frank Ch. Eigler <fche@elastic.org>
* stapfuncs.5.in (cpu): Document contextinfo function.
* context.stp (cpu): Clone undocumented cpuid() function.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | stapfuncs.5.in | 3 | ||||
-rw-r--r-- | tapset/ChangeLog | 6 | ||||
-rw-r--r-- | tapset/context.stp | 4 |
4 files changed, 16 insertions, 1 deletions
@@ -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, " "); |