Commit 162882e2 authored by Oriol Arcas's avatar Oriol Arcas

Do not use bpf_get_stackid in license tests

Signed-off-by: default avatarOriol Arcas <oriol@starflownetworks.com>
parent ab5772f7
......@@ -11,12 +11,10 @@ class TestLicense(unittest.TestCase):
BPF_STACK_TRACE(stack_traces, 10240);
struct gpl_s {
u64 ts;
int id;
};
BPF_PERF_OUTPUT(events);
int license_program(struct pt_regs *ctx) {
struct gpl_s data = {};
data.id = stack_traces.get_stackid(ctx, BPF_F_REUSE_STACKID);
data.ts = bpf_ktime_get_ns();
events.perf_submit(ctx, &data, sizeof(data));
return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment