diff --git a/pmu/bpf/sched_cgroup.bpf.c b/pmu/bpf/sched_cgroup.bpf.c index 60321a7bea716bae6b39b1140d0ff37e9e14d224..6587697f7d5d3cfe449501e5afa29876ae48e512 100644 --- a/pmu/bpf/sched_cgroup.bpf.c +++ b/pmu/bpf/sched_cgroup.bpf.c @@ -1,17 +1,7 @@ -/****************************************************************************** - * Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved. - * libkperf licensed under the Mulan PSL v2. - * You can use this software according to the terms and conditions of the Mulan PSL v2. - * You may obtain a copy of Mulan PSL v2 at: - * http://license.coscl.org.cn/MulanPSL2 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR - * PURPOSE. - * See the Mulan PSL v2 for more details. - * Author: Wu - * Create: 2025-08-10 - * Description: the bpf program for cgroup collecting in counting mode - ******************************************************************************/ +// SPDX-License-Identifier: GPL-2.0 +// Copyright (c) 2021 Facebook +// Copyright (c) 2021 Google + #include #include #include diff --git a/pmu/bpf/sched_counter.bpf.c b/pmu/bpf/sched_counter.bpf.c index f2136761a68d97e285f156fb31b4167ce5347d11..a4270803a084ffce9b71059b3182f029fe3331fb 100644 --- a/pmu/bpf/sched_counter.bpf.c +++ b/pmu/bpf/sched_counter.bpf.c @@ -1,23 +1,12 @@ -/****************************************************************************** - * Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved. - * libkperf licensed under the Mulan PSL v2. - * You can use this software according to the terms and conditions of the Mulan PSL v2. - * You may obtain a copy of Mulan PSL v2 at: - * http://license.coscl.org.cn/MulanPSL2 - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR - * PURPOSE. - * See the Mulan PSL v2 for more details. - * Author: Wu - * Create: 2025-08-10 - * Description: the bpf program for ordinary or multi-thread program collecting in counting mode - ******************************************************************************/ +// SPDX-License-Identifier: GPL-2.0 +// Copyright (c) 2021 Facebook + #include #include #include #include -char LICENSE[] SEC("license") = "GPL"; +char LICENSE[] SEC("license") = "Dual BSD/GPL"; #define MAX_ENTRIES 102400