diff options
author | srikar <srikar> | 2007-08-27 10:22:05 +0000 |
---|---|---|
committer | srikar <srikar> | 2007-08-27 10:22:05 +0000 |
commit | 866f6739b1d039e77c2fa4d15dfcad4e151c149b (patch) | |
tree | a2765b23d528902787dfabc02a9d900f2afa569a /tapset/LKET/utils.stp | |
parent | 622cbb7125992573459732c46a7fcb29a6d536b5 (diff) | |
download | systemtap-steved-866f6739b1d039e77c2fa4d15dfcad4e151c149b.tar.gz systemtap-steved-866f6739b1d039e77c2fa4d15dfcad4e151c149b.tar.xz systemtap-steved-866f6739b1d039e77c2fa4d15dfcad4e151c149b.zip |
Removing LKET tapset files. (PR 4817: retiring LKET services)
Diffstat (limited to 'tapset/LKET/utils.stp')
-rwxr-xr-x | tapset/LKET/utils.stp | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/tapset/LKET/utils.stp b/tapset/LKET/utils.stp deleted file mode 100755 index 8edab81e..00000000 --- a/tapset/LKET/utils.stp +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (C) 2005, 2006 IBM Corp. -// -// This file is part of systemtap, and is free software. You can -// redistribute it and/or modify it under the terms of the GNU General -// Public License (GPL); either version 2, or (at your option) any -// later version. - -/* data tracing filter by pid - return: - 1 - if continue to log the raw data - 0 - return without logging the raw data - */ -function filter_by_pid:long() -%{ - struct task_struct *cur = current; - - if(cur->tgid != _stp_pid) { - /* to trace a specific process if we explicitly specify - which process we want to trace by: - 1. stap -c "process_to_trace" ... - 2. stap -x pid_to_trace ... - else we will trace all the processes - */ - if( _stp_target != 0 && cur->tgid != _stp_target) { - THIS->__retvalue = 0; - } else - THIS->__retvalue = 1; - } else /*skip the events generated by stap itself*/ - THIS->__retvalue = 0; -%} - -function reset_maxaction() -%{ - struct context* c; - int cpu; - for_each_online_cpu(cpu) { - c = per_cpu_ptr (contexts, cpu); - c->actioncount = 0; - } -%} |