diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2009-09-23 16:41:40 -0400 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2009-09-23 16:41:40 -0400 |
commit | d098276239dd9f2e1ad031b48519a5a21779c369 (patch) | |
tree | 9b288ad5fcf9ac9b7a13f3bdc986621230d60dc2 /doc | |
parent | 09846ceb72c27dfe87f0b5c8d0a6296fc09bbc36 (diff) | |
download | systemtap-steved-d098276239dd9f2e1ad031b48519a5a21779c369.tar.gz systemtap-steved-d098276239dd9f2e1ad031b48519a5a21779c369.tar.xz systemtap-steved-d098276239dd9f2e1ad031b48519a5a21779c369.zip |
PR10632: simplify randint() implementation
* tapset/random.stp (randint): Make it 1-arity (imply min=0).
Document with kerneldoc.
* doc/Systemtap_Tapset_Reference/tapsets.tmpl: Extract the docs.
* runtime/arith.c (_stp_random_pm_u): Rename without _pm.
(_stp_random_pm): Rewrite in terms of ..._u.
* testsuite/random.stp: Adapt & simplify.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/SystemTap_Tapset_Reference/tapsets.tmpl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/SystemTap_Tapset_Reference/tapsets.tmpl b/doc/SystemTap_Tapset_Reference/tapsets.tmpl index fcfb1e85..99f72727 100644 --- a/doc/SystemTap_Tapset_Reference/tapsets.tmpl +++ b/doc/SystemTap_Tapset_Reference/tapsets.tmpl @@ -214,4 +214,11 @@ </para> !Itapset/logging.stp </chapter> + <chapter id="random.stp"> + <title>Random functions Tapset</title> + <para> + These functions deal with random number generation. + </para> +!Itapset/random.stp + </chapter> </book> |