From 8f4a619461d4e5050f9b37422e76275081eed547 Mon Sep 17 00:00:00 2001 From: ganchuantao Date: Tue, 10 Sep 2024 14:47:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=89=88=E6=9D=83=E5=A3=B0?= =?UTF-8?q?=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ganchuantao Change-Id: I402b7101ee45c8b28862f48546ad0a05235ef858 --- LICENSE | 3 ++- hiebpf/include/bpf_log_writer.h | 3 +-- hiebpf/include/fstrace_progs.h | 3 +-- hiebpf/include/hiebpf_types.h | 3 +-- hiebpf/src/hiebpf.bpf.c | 3 +-- 5 files changed, 6 insertions(+), 9 deletions(-) diff --git a/LICENSE b/LICENSE index 9dd369095..95456ee3e 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,7 @@ Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved. -The hiebpf subdirectories are licensed under Apache License, Version 2.0. +Because of hiebpf.bpf.c,bpf_log_write.h,fstrace_progs.h,hiebpf_types.h is run at kernel mode, other files +under hiebpf subdirectories is run at user mode, so other files under hiebpf subdirectories use Apache License. The hiebpf.bpf.c,bpf_log_write.h,fstrace_progs.h,hiebpf_types.h is dual licensed: you can use it either under the terms of the GPL V2, or the 3-Clause BSD license, at your option. diff --git a/hiebpf/include/bpf_log_writer.h b/hiebpf/include/bpf_log_writer.h index f540b6e71..5f19ace58 100644 --- a/hiebpf/include/bpf_log_writer.h +++ b/hiebpf/include/bpf_log_writer.h @@ -1,11 +1,10 @@ /* * Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved. -* The hiebpf subdirectories are licensed under Apache License, Version 2.0. * The bpf_log_write.h is dual licensed: you can use it either under the terms of * the GPL V2, or the 3-Clause BSD license, at your option. -* hiebpf is dual licensed: you can use it either under the terms of +* bpf_log_write.h is dual licensed: you can use it either under the terms of * the GPL V2, or the BSD3 license, at your option. * See the LICENSE file in the root of this repository for complete details. */ diff --git a/hiebpf/include/fstrace_progs.h b/hiebpf/include/fstrace_progs.h index 6dee7112c..89fb33bfd 100644 --- a/hiebpf/include/fstrace_progs.h +++ b/hiebpf/include/fstrace_progs.h @@ -1,11 +1,10 @@ /* * Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved. -* The hiebpf subdirectories are licensed under Apache License, Version 2.0. * The fstrace_progs.h is dual licensed: you can use it either under the terms of * the GPL V2, or the 3-Clause BSD license, at your option. -* hiebpf is dual licensed: you can use it either under the terms of +* fstrace_progs.h is dual licensed: you can use it either under the terms of * the GPL V2, or the BSD3 license, at your option. * See the LICENSE file in the root of this repository for complete details. */ diff --git a/hiebpf/include/hiebpf_types.h b/hiebpf/include/hiebpf_types.h index f6eb4a39d..b3e00b63c 100644 --- a/hiebpf/include/hiebpf_types.h +++ b/hiebpf/include/hiebpf_types.h @@ -1,11 +1,10 @@ /* * Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved. -* The hiebpf subdirectories are licensed under Apache License, Version 2.0. * The hiebpf_types.h is dual licensed: you can use it either under the terms of * the GPL V2, or the 3-Clause BSD license, at your option. -* hiebpf is dual licensed: you can use it either under the terms of +* hiebpf_types.h is dual licensed: you can use it either under the terms of * the GPL V2, or the BSD3 license, at your option. * See the LICENSE file in the root of this repository for complete details. */ diff --git a/hiebpf/src/hiebpf.bpf.c b/hiebpf/src/hiebpf.bpf.c index f8942284e..e8505c67a 100644 --- a/hiebpf/src/hiebpf.bpf.c +++ b/hiebpf/src/hiebpf.bpf.c @@ -1,11 +1,10 @@ /* * Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved. -* The hiebpf subdirectories are licensed under Apache License, Version 2.0. * The hiebpf.bpf.c is dual licensed: you can use it either under the terms of * the GPL V2, or the 3-Clause BSD license, at your option. -* hiebpf is dual licensed: you can use it either under the terms of +* hiebpf.bpf.c is dual licensed: you can use it either under the terms of * the GPL V2, or the BSD3 license, at your option. * See the LICENSE file in the root of this repository for complete details. */