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
c5c17472
Commit
c5c17472
authored
Mar 23, 2018
by
yonghong-song
Committed by
GitHub
Mar 23, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1646 from pchaigno/check-helpers-list-virtual_bpf.h
scripts: check virtual_list.h's list of helpers
parents
19e33729
253691ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
scripts/check-helpers.sh
scripts/check-helpers.sh
+8
-0
No files found.
scripts/check-helpers.sh
View file @
c5c17472
...
...
@@ -18,6 +18,14 @@ if [ $? -ne 0 ]; then
((
ret++
))
fi
virtual
=
$(
grep
-oP
"(?<=^
\s
FN
\(
)
\w
+"
src/cc/compat/linux/virtual_bpf.h |
tail
-n
+2 |
sort
-u
)
dif
=
$(
diff <
(
echo
"
$compat
"
)
<
(
echo
"
$virtual
"
)
)
if
[
$?
-ne
0
]
;
then
echo
"The lists of helpers in src/cc/compat/linux/bpf.h and src/cc/compat/linux/virtual_bpf.h differ:"
echo
"
$dif
"
((
ret++
))
fi
export
=
$(
grep
-oP
"(?<=BPF_FUNC_)
\w
+"
src/cc/export/helpers.h |
sort
-u
)
dif
=
$(
diff <
(
echo
"
$compat
"
)
<
(
echo
"
$export
"
)
)
if
[
$?
-ne
0
]
;
then
...
...
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