|
@@ -235,6 +235,8 @@ static void print_prog_json(struct bpf_prog_info *info, int fd)
|
|
|
info->tag[0], info->tag[1], info->tag[2], info->tag[3],
|
|
|
info->tag[4], info->tag[5], info->tag[6], info->tag[7]);
|
|
|
|
|
|
+ jsonw_bool_field(json_wtr, "gpl_compatible", info->gpl_compatible);
|
|
|
+
|
|
|
print_dev_json(info->ifindex, info->netns_dev, info->netns_ino);
|
|
|
|
|
|
if (info->load_time) {
|
|
@@ -295,6 +297,7 @@ static void print_prog_plain(struct bpf_prog_info *info, int fd)
|
|
|
printf("tag ");
|
|
|
fprint_hex(stdout, info->tag, BPF_TAG_SIZE, "");
|
|
|
print_dev_plain(info->ifindex, info->netns_dev, info->netns_ino);
|
|
|
+ printf("%s", info->gpl_compatible ? " gpl" : "");
|
|
|
printf("\n");
|
|
|
|
|
|
if (info->load_time) {
|