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
1e7dc399
Commit
1e7dc399
authored
7 years ago
by
4ast
Committed by
GitHub
7 years ago
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1411 from iovisor/yhs_dev
bpf: fix a couple of issues related to arm64
parents
3d51c0f8
7abe63a0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
0 deletions
+4
-0
cmake/clang_libs.cmake
cmake/clang_libs.cmake
+1
-0
src/cc/bcc_proc.c
src/cc/bcc_proc.c
+2
-0
src/cc/bpf_module.cc
src/cc/bpf_module.cc
+1
-0
No files found.
cmake/clang_libs.cmake
View file @
1e7dc399
...
@@ -9,6 +9,7 @@ if (${_llvm_coroutines} GREATER -1)
...
@@ -9,6 +9,7 @@ if (${_llvm_coroutines} GREATER -1)
list
(
APPEND llvm_raw_libs coroutines
)
list
(
APPEND llvm_raw_libs coroutines
)
endif
()
endif
()
if
(
${
LLVM_PACKAGE_VERSION
}
VERSION_GREATER
"5"
)
if
(
${
LLVM_PACKAGE_VERSION
}
VERSION_GREATER
"5"
)
list
(
APPEND llvm_raw_libs bpfasmparser
)
list
(
APPEND llvm_raw_libs bpfdisassembler
)
list
(
APPEND llvm_raw_libs bpfdisassembler
)
endif
()
endif
()
llvm_map_components_to_libnames
(
_llvm_libs
${
llvm_raw_libs
}
)
llvm_map_components_to_libnames
(
_llvm_libs
${
llvm_raw_libs
}
)
...
...
This diff is collapsed.
Click to expand it.
src/cc/bcc_proc.c
View file @
1e7dc399
...
@@ -311,6 +311,7 @@ static int load_ld_cache(const char *cache_path) {
...
@@ -311,6 +311,7 @@ static int load_ld_cache(const char *cache_path) {
#define ABI_X8664_LIB64 0x0300
#define ABI_X8664_LIB64 0x0300
#define ABI_S390_LIB64 0x0400
#define ABI_S390_LIB64 0x0400
#define ABI_POWERPC_LIB64 0x0500
#define ABI_POWERPC_LIB64 0x0500
#define ABI_AARCH64_LIB64 0x0a00
static
bool
match_so_flags
(
int
flags
)
{
static
bool
match_so_flags
(
int
flags
)
{
if
((
flags
&
FLAG_TYPE_MASK
)
!=
TYPE_ELF_LIBC6
)
if
((
flags
&
FLAG_TYPE_MASK
)
!=
TYPE_ELF_LIBC6
)
...
@@ -322,6 +323,7 @@ static bool match_so_flags(int flags) {
...
@@ -322,6 +323,7 @@ static bool match_so_flags(int flags) {
case
ABI_X8664_LIB64
:
case
ABI_X8664_LIB64
:
case
ABI_S390_LIB64
:
case
ABI_S390_LIB64
:
case
ABI_POWERPC_LIB64
:
case
ABI_POWERPC_LIB64
:
case
ABI_AARCH64_LIB64
:
return
(
sizeof
(
void
*
)
==
8
);
return
(
sizeof
(
void
*
)
==
8
);
}
}
...
...
This diff is collapsed.
Click to expand it.
src/cc/bpf_module.cc
View file @
1e7dc399
...
@@ -111,6 +111,7 @@ BPFModule::BPFModule(unsigned flags, TableStorage *ts)
...
@@ -111,6 +111,7 @@ BPFModule::BPFModule(unsigned flags, TableStorage *ts)
LLVMInitializeBPFTargetInfo
();
LLVMInitializeBPFTargetInfo
();
LLVMInitializeBPFAsmPrinter
();
LLVMInitializeBPFAsmPrinter
();
#if LLVM_MAJOR_VERSION >= 6
#if LLVM_MAJOR_VERSION >= 6
LLVMInitializeBPFAsmParser
();
if
(
flags
&
DEBUG_SOURCE
)
if
(
flags
&
DEBUG_SOURCE
)
LLVMInitializeBPFDisassembler
();
LLVMInitializeBPFDisassembler
();
#endif
#endif
...
...
This diff is collapsed.
Click to expand it.
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