Rename time_in_state.o to timeInState.o
Underscore character may cause bpf prog/map naming collision. For
example, x.o with map y_z and x_y.o with map z both result in x_y_z
prog/map name, which should be prevented during compile-time.
aosp/2147825 will prohibit underscore character in bpf source name
(source name derives the obj name). Existing bpf modules with underscore
characters in source name need to be updated accordingly.
Bug: 236706995
Test: bpf-time-in-state-tests
Change-Id: I9c9507d8c822d5cc2a84c8de2f711cf940d02fd3
diff --git a/Android.bp b/Android.bp
index fe0b134..2a919c3 100644
--- a/Android.bp
+++ b/Android.bp
@@ -27,8 +27,8 @@
}
bpf {
- name: "time_in_state.o",
- srcs: ["time_in_state.c"],
+ name: "timeInState.o",
+ srcs: ["timeInState.c"],
btf: true,
cflags: [
"-Wall",
@@ -41,7 +41,7 @@
cc_library {
name: "lib_mock_bpf_time_in_state",
- srcs: ["time_in_state.c"],
+ srcs: ["timeInState.c"],
header_libs: ["bpf_prog_headers"],
cflags: [
"-Wall",
diff --git a/time_in_state.c b/timeInState.c
similarity index 99%
rename from time_in_state.c
rename to timeInState.c
index 1bb7646..7c09736 100644
--- a/time_in_state.c
+++ b/timeInState.c
@@ -1,5 +1,5 @@
/*
- * time_in_state eBPF program
+ * timeInState eBPF program
*
* Copyright (C) 2018 Google
*