Skip to content

Commit

Permalink
Tiny code gen fix
Browse files Browse the repository at this point in the history
  • Loading branch information
parttimenerd committed Sep 3, 2024
1 parent c643276 commit 3efb066
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion bpf-gen/src/main/java/me/bechberger/ebpf/gen/Generator.java
Original file line number Diff line number Diff line change
Expand Up @@ -1878,7 +1878,8 @@ private void processRawType(JSONObjectWithType rawType) {
private IntType processIntType(int id, JSONObjectWithType rawType) {
var name = switch (rawType.getName()) {
case "char" -> "u8";
case "unsigned char" -> "s8";
case "unsigned char" -> "u8";
case "signed char" -> "s8";
default -> rawType.getName();
};
var size = rawType.getInteger("nr_bits");
Expand Down
2 changes: 1 addition & 1 deletion bpf-runtime/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ cd "$(dirname "$0")"/.. || exit

(cd bpf-runtime; mvn clean)

mvn package -U && time java -jar bpf-gen/target/bpf-gen.jar bpf-runtime/src/main/java/ bpf-gen/data/helper-defs.json
mvn package -U && MAVEN_OPTS="-Xss1000m" time java -jar bpf-gen/target/bpf-gen.jar bpf-runtime/src/main/java/ bpf-gen/data/helper-defs.json

(cd bpf-runtime; mvn package -U)
6 changes: 3 additions & 3 deletions bpf-runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
</execution>
</executions>
</plugin>
<plugin>
<!--<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
Expand All @@ -112,11 +112,11 @@
</executions>
<configuration>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>- -pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</plugin>
</plugin>-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
Expand Down

0 comments on commit 3efb066

Please sign in to comment.