bcc: Allow KFUNC_PROBE to instrument function without arguments
authorHengqi Chen <chenhengqi@outlook.com>
Sun, 17 Oct 2021 15:50:09 +0000 (23:50 +0800)
committerHengqi Chen <chenhengqi@outlook.com>
Sun, 17 Oct 2021 15:50:09 +0000 (23:50 +0800)
commit4f64e93d2d2058458abf248a0b78961e674fa37c
tree6ea45ba1911838b42cb5d0299afb968538f8587f
parentd1afbf65eab91d47fe9868853ee4f4c7638203eb
bcc: Allow KFUNC_PROBE to instrument function without arguments

Update KFUNC_PROBE and its family to allow instrument kernel
function without specifying arguments. Sometimes, we don't need
to bookkeep arguments at function entry, just store a timestamp.
This fix would allow this use case.

Signed-off-by: Hengqi Chen <chenhengqi@outlook.com>
src/cc/export/helpers.h