| 1 |
// task information tapset |
| 2 |
// Copyright (C) 2018 Red Hat Inc. |
| 3 |
// |
| 4 |
// This file is part of systemtap, and is free software. You can |
| 5 |
// redistribute it and/or modify it under the terms of the GNU General |
| 6 |
// Public License (GPL); either version 2, or (at your option) any |
| 7 |
// later version. |
| 8 |
|
| 9 |
@__private30 function _task_cur:long() |
| 10 |
%{ /* bpf */ /* pure */ |
| 11 |
call, $$, get_current_task; |
| 12 |
%} |
| 13 |
|
| 14 |
/** |
| 15 |
* sfunction task_current - The current task_struct of the current task |
| 16 |
*/ |
| 17 |
function task_current:long () { |
| 18 |
// TODO: return & @task(_task_cur()) |
| 19 |
return & @cast(_task_cur(), "task_struct") |
| 20 |
} |