Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bcc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
bcc
Commits
162882e2
Commit
162882e2
authored
Jun 21, 2018
by
Oriol Arcas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not use bpf_get_stackid in license tests
Signed-off-by:
Oriol Arcas
<
oriol@starflownetworks.com
>
parent
ab5772f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
tests/python/test_license.py
tests/python/test_license.py
+0
-2
No files found.
tests/python/test_license.py
View file @
162882e2
...
...
@@ -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;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment