Commit graph

2176 commits

Author SHA1 Message Date
Chenbo Feng
f4a511c0da Skip the bpf native tests on old devices am: 249e2f869e
am: e86dee8f01

Change-Id: I6a147411d2708c55ad44a9215ed31267bff1cfbc
2018-11-26 14:28:58 -08:00
Chenbo Feng
e86dee8f01 Skip the bpf native tests on old devices
am: 249e2f869e

Change-Id: I17a1b59b4c5b5cb589e48a648aba13ca8a90c587
2018-11-26 14:24:47 -08:00
Chenbo Feng
249e2f869e Skip the bpf native tests on old devices
For older devices that doesn't have bpf support, skip the bpf native
tests so we don't get false alarms. Fixed some compiler warning and
added the clang-format check.

Test: ./libnetdbpf_test/libnetdbpf_test
Bug: 119526856
Change-Id: Icb73a8ee9b9dff9a0da28b96578e1245f1f3724f
2018-11-21 12:11:55 -08:00
Chenbo Feng
087480738f Rename libbpf to libbpf_android am: 79a4da2d1e am: 9053c49111
am: d2337f9591

Change-Id: I1246a2e610394c22e2a5da6017feabe8910d32c4
2018-11-09 16:47:12 -08:00
Chenbo Feng
d2337f9591 Rename libbpf to libbpf_android am: 79a4da2d1e
am: 9053c49111

Change-Id: Id80b9fc59c7c1881cf2d6a4d0bd3921cb392fc97
2018-11-09 12:40:51 -08:00
Chenbo Feng
9053c49111 Rename libbpf to libbpf_android
am: 79a4da2d1e

Change-Id: I6a43535cc6ebbc3c0016736f5ea60c492c707b91
2018-11-09 12:26:31 -08:00
Chenbo Feng
79a4da2d1e Rename libbpf to libbpf_android
Rename the bpf support library in android to libbpf_android to make
it compatible with external bcc project. Fix the Android.bp file to
prevent build break.

Bug: 112334572
Test: No build breakage.
Change-Id: I24ae8aaf8ca8afdded5e46d21f0deec68d6030da
2018-11-08 11:32:31 -08:00
Bernie Innocenti
a5e30e81e0 Disable noisy clang-tidy warning for int and long types am: b2515ff7ce am: 08f2ad4d0d
am: c1c33b1cc0

Change-Id: Ibeb9fd115ebe1380068af907ce82fa151b62cccd
2018-10-26 06:23:34 -07:00
Bernie Innocenti
c1c33b1cc0 Disable noisy clang-tidy warning for int and long types am: b2515ff7ce
am: 08f2ad4d0d

Change-Id: I7e8681675333e83d075b82a84dd92f205b567755
2018-10-26 06:19:43 -07:00
Bernie Innocenti
08f2ad4d0d Disable noisy clang-tidy warning for int and long types
am: b2515ff7ce

Change-Id: Iaf23fc2659ce19a8ede3030375fd470efa6284e7
2018-10-26 06:15:41 -07:00
Bernie Innocenti
b2515ff7ce Disable noisy clang-tidy warning for int and long types
These are hard to avoid when working with POSIX APIs:

  warning: consider replacing 'unsigned int' with 'uint32' [google-runtime-int]

Change-Id: I30047ff05ff680a9337671368e6b82ba88244f79
2018-10-25 22:12:07 +09:00
Bernie Innocenti
0f53e7d434 Merge "Add missing #include for ALOGx() macros" am: 5f35d9993f am: 5379548241
am: 40b7bd3a2e

Change-Id: I73f085295b8dbf11ae22562a68e3821a97263a02
2018-10-19 02:45:49 -07:00
Bernie Innocenti
40b7bd3a2e Merge "Add missing #include for ALOGx() macros" am: 5f35d9993f
am: 5379548241

Change-Id: I18a0ef1c8b1c54f13d5c3056b0a67ac986e766f1
2018-10-19 02:41:35 -07:00
Bernie Innocenti
5379548241 Merge "Add missing #include for ALOGx() macros"
am: 5f35d9993f

Change-Id: I8ec9671fefb9d9dd8ab66911af8d9468d133a929
2018-10-19 02:37:19 -07:00
Treehugger Robot
5f35d9993f Merge "Add missing #include for ALOGx() macros" 2018-10-19 09:25:25 +00:00
Bernie Innocenti
26ffded7e2 Add missing #include for ALOGx() macros
Also remove some dead includes.

Test: atest libbpf_test
Change-Id: I89ae55377139f9db992451939a97657d04bd1cb5
2018-10-19 15:51:02 +09:00
khmel@google.com
ea08523a09 resolve merge conflicts of 9b44fcfedc34a5f34ea08c7ed15014c4caedbd9f to master-arc-dev
Bug: None
Test: I solemnly swear I tested this conflict resolution.
Change-Id: I1cbcd006f56e4cc08356c402171a06761a856a98
2018-10-18 11:10:04 -07:00
Chenbo Feng
0a4485ff8a Fix the build problem with bpf project am: 4c9e9ecc57 am: 46662c8d38
am: 5a0dc108f4

Change-Id: I80455dae2f62d8938660401e00833b400a8b7b54
2018-10-18 09:14:08 -07:00
Chenbo Feng
d695a641d8 Initial checkin for bpf project am: 75b410bdf1 am: 3483f98c41
am: 20ca39a6e1

Change-Id: I385dac6f31702761cfcabc07201578f780aabdcc
2018-10-18 09:14:02 -07:00
Chenbo Feng
5a0dc108f4 Fix the build problem with bpf project am: 4c9e9ecc57
am: 46662c8d38

Change-Id: I2dacf0fcf9ab58788dd4930a70bb44b110e9f3c6
2018-10-18 08:12:50 -07:00
Chenbo Feng
20ca39a6e1 Initial checkin for bpf project am: 75b410bdf1
am: 3483f98c41

Change-Id: Ic64c17daf81f9f92c7352fffd015ca7c3c43891e
2018-10-18 08:01:46 -07:00
Chenbo Feng
46662c8d38 Fix the build problem with bpf project
am: 4c9e9ecc57

Change-Id: I581717a4feed0a62bcb903945a777969dcd777e6
2018-10-17 13:55:50 -07:00
Chenbo Feng
3483f98c41 Initial checkin for bpf project
am: 75b410bdf1

Change-Id: Ie1b14f24f4231b506b31e6e7015ad4255db2400c
2018-10-17 13:47:36 -07:00
Chenbo Feng
4c9e9ecc57 Fix the build problem with bpf project
Add the necessary Android.bp file and fix the compile error for the new
bpf project.

Fix the run time restart false alarm in bpf loader.

Bug: 112334572

Test: device boot and dumpsys netd show eBPF object okay, runtime
      restart netd and no bpfloader error showed in logcat.
Change-Id: Iae193bda45e50b7d22479086d6403e3c4fb185c4
2018-10-16 21:17:12 -07:00
Chenbo Feng
75b410bdf1 Initial checkin for bpf project
Copied the files from system/netd into system/bpf. No modification is
made to the files.

Test: this doesn't build since the Android.bp file is missing
Bug: 112334572

Change-Id: Ia090a429dd416e07c46766784fb3dd2037201525
2018-10-16 20:38:03 -07:00
Inna Palant
3d00fed6eb Initial empty repository 2018-10-04 09:00:26 -07:00