diff --git a/CMakeLists.txt b/CMakeLists.txt index bca0eb917fad99257bb86774b70d7e554c0f77a3..39f297244e6abe65bac7f76fad4a976665272f86 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ # Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. -# gala-gopher licensed under the Mulan PSL v2. +# 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 diff --git a/Common.cmake b/Common.cmake index 75723984a3e437faf17d8a5cd5e082d4cf23e3ec..8ce80f6626a10d015518f80561b2ab2201e08ec2 100644 --- a/Common.cmake +++ b/Common.cmake @@ -1,5 +1,5 @@ # Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. -# gala-gopher licensed under the Mulan PSL v2. +# 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 diff --git a/build.sh b/build.sh index 27e60cb2925bdb8f4110b6e112b7b912cdd9c561..f6eb958ff3a06bf0d24201e61e0012867d2e9986 100644 --- a/build.sh +++ b/build.sh @@ -1,6 +1,6 @@ #!/bin/bash # Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. -# gala-gopher licensed under the Mulan PSL v2. +# 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 @@ -56,7 +56,10 @@ for arg in "$@"; do esac done -# build libprof.so libraries including libprocfs.so libprocfs.a libpmu.so libpmu.a libtrace.so libtrace.so +if [[ "$INCLUDE_TEST" == "true" ]]; then + build_googletest $THIRD_PARTY +fi + function build_elfin() { local cmake_target_dir=$THIRD_PARTY/local/elfin-parser rm -rf ${cmake_target_dir} diff --git a/build/common.sh b/build/common.sh index 75f3abc0fa483b6dba4b2b852ac65e613929835d..26bf89373e2bf734747cfb5242dd10423f2cd6cc 100644 --- a/build/common.sh +++ b/build/common.sh @@ -1,6 +1,6 @@ #!/bin/bash # Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. -# gala-gopher licensed under the Mulan PSL v2. +# 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 diff --git a/include/pcerrc.h b/include/pcerrc.h index abaf10f090171e3b80b4835273ecbfe35975de12..eabeb6e99e75106089e94d59cc8810bce0faaa01 100644 --- a/include/pcerrc.h +++ b/include/pcerrc.h @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 diff --git a/include/pmu.h b/include/pmu.h index 55cec41e027c6c24510890c08ca6bfbd3347b83a..9ba1f34a7ba93043ffa56c719b8712089b88adde 100644 --- a/include/pmu.h +++ b/include/pmu.h @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 @@ -125,7 +125,7 @@ struct PmuData { unsigned cpu; // cpu id struct CpuTopology *cpuTopo; // cpu topology const char *comm; // process command - int period; // number of Samples + uint64_t period; // number of Samples uint64_t count; // event count. Only available for Counting. struct PmuDataExt *ext; // extension. Only available for Spe. diff --git a/pmu/decoder/arm_spe_decoder.cpp b/pmu/decoder/arm_spe_decoder.cpp index 466f016bb3937d81c85ec53c7b23f3a4f91cf3f8..1001f8d21f797a604a575cae737ae5b7b2264e7b 100644 --- a/pmu/decoder/arm_spe_decoder.cpp +++ b/pmu/decoder/arm_spe_decoder.cpp @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 diff --git a/pmu/decoder/arm_spe_decoder.h b/pmu/decoder/arm_spe_decoder.h index 65d247e39b8d0adbb760c07f02e5694b636d284e..113a38f7bfbab249d9cfb560aa637e6ec1a8fa89 100644 --- a/pmu/decoder/arm_spe_decoder.h +++ b/pmu/decoder/arm_spe_decoder.h @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 diff --git a/pmu/evt.cpp b/pmu/evt.cpp index f459d2a04b22a9b4e3347a6d570c2be43b015ef1..db27e0cc402fe4848cb13a7c7a42f53e9a85c575 100644 --- a/pmu/evt.cpp +++ b/pmu/evt.cpp @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 diff --git a/pmu/evt.h b/pmu/evt.h index a9e259888d3aa4822acf3a5179d4821fa4a00f04..ee27ac9eb935dbdc3e2158d495a995c0a77f5438 100644 --- a/pmu/evt.h +++ b/pmu/evt.h @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 diff --git a/pmu/evt_list.cpp b/pmu/evt_list.cpp index e3885be51fad894d0438a3d540fadf20cabe359a..f489161110fee5fbccb9c27552cbdd2d45930c58 100644 --- a/pmu/evt_list.cpp +++ b/pmu/evt_list.cpp @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 diff --git a/pmu/evt_list.h b/pmu/evt_list.h index 47ef4b2e28602e9b2aaca7b38350bd8e3d3c8dd8..7bb359501076acf8bf7c32de3c976f9748e09d08 100644 --- a/pmu/evt_list.h +++ b/pmu/evt_list.h @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 diff --git a/pmu/perf_counter.cpp b/pmu/perf_counter.cpp index cc7589f88f548c8a8ba702c6d99dc4931a4f94d6..2b25d7e84a384f805e77148a1c7db0a4f5385433 100644 --- a/pmu/perf_counter.cpp +++ b/pmu/perf_counter.cpp @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 diff --git a/pmu/perf_counter.h b/pmu/perf_counter.h index 19628fce937d1869ba4894efccd96367d6c2555d..4d50ed40214b97e3e810dc7537f67e3dd1804ec8 100644 --- a/pmu/perf_counter.h +++ b/pmu/perf_counter.h @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 diff --git a/pmu/pfm/core.cpp b/pmu/pfm/core.cpp index ff95b5a26cc70fcf771c0e59746bf363842eaaab..c90694bd93c7e0ac723d550462c2610237c9cf84 100644 --- a/pmu/pfm/core.cpp +++ b/pmu/pfm/core.cpp @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 diff --git a/pmu/pfm/core.h b/pmu/pfm/core.h index 4c7809bf24b26b0cb31bfb074be70b6b50db7997..0df6a25f72f8b669fc6f4f55f8285b2b9b85a7f9 100644 --- a/pmu/pfm/core.h +++ b/pmu/pfm/core.h @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 diff --git a/pmu/pfm/pfm.cpp b/pmu/pfm/pfm.cpp index 598c76906ec243d0b86e27cc1e9c213254dc6095..15c36366ded0a498125ba7829ab59d70c0f6e1aa 100644 --- a/pmu/pfm/pfm.cpp +++ b/pmu/pfm/pfm.cpp @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 diff --git a/pmu/pfm/pfm.h b/pmu/pfm/pfm.h index 78bd679d0fda71a0c79f407a5df9faf22f52a26b..64e82c035aa6dc2cbbcbd020704bbd1196e4e7be 100644 --- a/pmu/pfm/pfm.h +++ b/pmu/pfm/pfm.h @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 diff --git a/pmu/pfm/pfm_event.h b/pmu/pfm/pfm_event.h index aaca4a646e1085fef3ad35014947efaba3650a3c..99b5514c78ecb0ac0a14beac0329a36d3dcf492c 100644 --- a/pmu/pfm/pfm_event.h +++ b/pmu/pfm/pfm_event.h @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 diff --git a/pmu/pfm/pfm_name.cpp b/pmu/pfm/pfm_name.cpp index ffe7df2be957d24d5de606c91f2c15ffab8630e3..3a6aa1b2dd737a236860676c98df8f69570210c3 100644 --- a/pmu/pfm/pfm_name.cpp +++ b/pmu/pfm/pfm_name.cpp @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 diff --git a/pmu/pfm/pfm_name.h b/pmu/pfm/pfm_name.h index 33991d2ae946c75769fda54049045ee9f9487aac..6d5a9002bd666d54ffd9bc1740ed2f478b1c2c11 100644 --- a/pmu/pfm/pfm_name.h +++ b/pmu/pfm/pfm_name.h @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 diff --git a/pmu/pfm/trace.cpp b/pmu/pfm/trace.cpp index c0c9b56ad0699641eaffcf699712cc7fa0edb24b..7835683243d24192ada744e3a6aec6ac199410d4 100644 --- a/pmu/pfm/trace.cpp +++ b/pmu/pfm/trace.cpp @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 diff --git a/pmu/pfm/trace.h b/pmu/pfm/trace.h index 55b5fd4c35c30c21f286dcd29844e242deefb4f4..4b56533ccd17be0320ec0a4f200b0fe8263c3d79 100644 --- a/pmu/pfm/trace.h +++ b/pmu/pfm/trace.h @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 diff --git a/pmu/pfm/uncore.cpp b/pmu/pfm/uncore.cpp index ce2128f035e4eeea012b6139450d6f80f366b74e..f5f67c37b61d6bd27928d6b688d32b6a10c1c74c 100644 --- a/pmu/pfm/uncore.cpp +++ b/pmu/pfm/uncore.cpp @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 diff --git a/pmu/pfm/uncore.h b/pmu/pfm/uncore.h index 3599239e47d86e9b64ccaa9dbf4e948ef68fc671..69ed5621df7f315750a45e45b5101b8e658fb0b2 100644 --- a/pmu/pfm/uncore.h +++ b/pmu/pfm/uncore.h @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 diff --git a/pmu/pmu.cpp b/pmu/pmu.cpp index 0b50c3c26f96a1d3d3a53fb0b4462e68df70bdf5..ce656573219dbe402d468fd30f32571f52ede449 100644 --- a/pmu/pmu.cpp +++ b/pmu/pmu.cpp @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 diff --git a/pmu/pmu_event.cpp b/pmu/pmu_event.cpp index 19f027ea07a6fb9df261a5cce10bc20f93d857d3..8a0bdc6d5eb657f3d1219df9f0c1efa1f6e4dde9 100644 --- a/pmu/pmu_event.cpp +++ b/pmu/pmu_event.cpp @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 diff --git a/pmu/pmu_event.h b/pmu/pmu_event.h index a80b1faf9a45af084113211e265ce629390ef27d..bc0fead7de36bcfa20c2a06bf4546c1776ce819c 100644 --- a/pmu/pmu_event.h +++ b/pmu/pmu_event.h @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 diff --git a/pmu/pmu_event_list.cpp b/pmu/pmu_event_list.cpp index 849ec9a6efb3a322489fdb886c11833663d9f29b..0f6bb805cc03b65cdaa966e591e763721813599a 100644 --- a/pmu/pmu_event_list.cpp +++ b/pmu/pmu_event_list.cpp @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 diff --git a/pmu/pmu_event_list.h b/pmu/pmu_event_list.h index 82832df5c76c10d300b37b4742d79725aecf6a01..8ae1b4c2de6e0132e3ba3a3fbd7199e3d00b34e1 100644 --- a/pmu/pmu_event_list.h +++ b/pmu/pmu_event_list.h @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 diff --git a/pmu/pmu_list.cpp b/pmu/pmu_list.cpp index a3b14995ab1dc8371dcb95a45b1527209cad5bb2..15d2319c714b00c0e8c0327cb88c5f1a2108ab24 100644 --- a/pmu/pmu_list.cpp +++ b/pmu/pmu_list.cpp @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 diff --git a/pmu/pmu_list.h b/pmu/pmu_list.h index 6dae608d4d2b02659eefc28a10e468aaa5404746..9d297a22d6a1d94fb82cc92db708b72e74cef55d 100644 --- a/pmu/pmu_list.h +++ b/pmu/pmu_list.h @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 diff --git a/pmu/sample_process.cpp b/pmu/sample_process.cpp index 56a92a4556052c541287dfbb0a0f44b290331792..fcd1bfaf482cee26d80bd78258a97bbfef0610d6 100644 --- a/pmu/sample_process.cpp +++ b/pmu/sample_process.cpp @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 diff --git a/pmu/sample_process.h b/pmu/sample_process.h index 0878845d2c6fa8873a78a543510296dd13403d34..7bc5b29385d07f7ac15d732f71dac6468adf6afd 100644 --- a/pmu/sample_process.h +++ b/pmu/sample_process.h @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 diff --git a/pmu/sampler.cpp b/pmu/sampler.cpp index 7a50838b546fe7445a35a64c8ea465a038c2edde..c463d6c131be26c877f9f3eec767fc13140157bf 100644 --- a/pmu/sampler.cpp +++ b/pmu/sampler.cpp @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 @@ -151,7 +151,7 @@ void KUNPENG_PMU::PerfSampler::RawSampleProcess( current->cpu = static_cast(sample->cpu); current->pid = static_cast(sample->pid); current->tid = static_cast(sample->tid); - current->period = static_cast(sample->period); + current->period = static_cast(sample->period); } void KUNPENG_PMU::PerfSampler::ReadRingBuffer(vector &data, vector &sampleIps) diff --git a/pmu/sampler.h b/pmu/sampler.h index e9ab432c6b15796345c095aecb5af88f3570a9ff..a55405f38df07ac9ae86fc9a61c909b28a4c6ce5 100644 --- a/pmu/sampler.h +++ b/pmu/sampler.h @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 diff --git a/pmu/spe.cpp b/pmu/spe.cpp index 8470edd406889d0695d36e831bc14d485f799700..641a9774d650fed20bc34dff376770e210b8a660 100644 --- a/pmu/spe.cpp +++ b/pmu/spe.cpp @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 diff --git a/pmu/spe.h b/pmu/spe.h index 7e5697fd9e9453889347985f572fd386a16e1e9d..1312403ca63e7173448743e6ddaa5ef2c13129ef 100644 --- a/pmu/spe.h +++ b/pmu/spe.h @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 diff --git a/pmu/spe_sampler.cpp b/pmu/spe_sampler.cpp index 9cca5e49e38ebaf9e6ca21c1a3464eec4cd09fdc..d9ce7f0335aea483480a38aba186784b2dd93d0f 100644 --- a/pmu/spe_sampler.cpp +++ b/pmu/spe_sampler.cpp @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 diff --git a/pmu/spe_sampler.h b/pmu/spe_sampler.h index 2f503ce331ecd93ca6997ad045086989484fff63..fa45ca853cf105e10de052654958ac0ea30bc119 100644 --- a/pmu/spe_sampler.h +++ b/pmu/spe_sampler.h @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt index 5c188ab519d60c93d0df7cd0604a6037904b3296..4a107d1f98dfddf05de2961bdb15f9a8700f1059 100644 --- a/python/CMakeLists.txt +++ b/python/CMakeLists.txt @@ -1,5 +1,5 @@ # Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. -# gala-gopher licensed under the Mulan PSL v2. +# 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 diff --git a/python/modules/CMakeLists.txt b/python/modules/CMakeLists.txt index 5cf582c56ee454dc4783258420825f25a27c3c78..40b53a1fbbda7046d5dfff508d8bdde32fe47bef 100644 --- a/python/modules/CMakeLists.txt +++ b/python/modules/CMakeLists.txt @@ -1,5 +1,5 @@ # Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. -# gala-gopher licensed under the Mulan PSL v2. +# 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 diff --git a/python/modules/__init__.py b/python/modules/__init__.py index 725583e6713bb8e7f409b79b65dbc214bd6e7a2c..249e96ec6413a67655a235b28d73d89d20398a2b 100644 --- a/python/modules/__init__.py +++ b/python/modules/__init__.py @@ -1,6 +1,6 @@ """ Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. -gala-gopher licensed under the Mulan PSL v2. +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 diff --git a/python/modules/_libkperf/Config.py b/python/modules/_libkperf/Config.py index a34945c0c60246b71ed02489a221938535c4659c..46ee5d76aa733e6f3604bed1d47eb08dcb3eec43 100644 --- a/python/modules/_libkperf/Config.py +++ b/python/modules/_libkperf/Config.py @@ -1,6 +1,6 @@ """ Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. -gala-gopher licensed under the Mulan PSL v2. +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 diff --git a/python/modules/_libkperf/Perror.py b/python/modules/_libkperf/Perror.py index cbdfc0b3acd068936dab50f8fa08829627508730..028d4ffd0ef36e8f62b7f198ddea387249c8c920 100644 --- a/python/modules/_libkperf/Perror.py +++ b/python/modules/_libkperf/Perror.py @@ -1,6 +1,6 @@ """ Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. -gala-gopher licensed under the Mulan PSL v2. +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 diff --git a/python/modules/_libkperf/Pmu.py b/python/modules/_libkperf/Pmu.py index e3f2f1ee28e52457527ef29ad916d5fdd4b2bbc2..bd0f3964e09fa50aa10b021dab182d00236e536c 100644 --- a/python/modules/_libkperf/Pmu.py +++ b/python/modules/_libkperf/Pmu.py @@ -1,6 +1,6 @@ """ Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. -gala-gopher licensed under the Mulan PSL v2. +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 diff --git a/python/modules/_libkperf/Symbol.py b/python/modules/_libkperf/Symbol.py index d277ea39fa0b63df146d27c7a6131f848469e64a..83ebd82c3019760e49b0c25922cb469c3b055698 100644 --- a/python/modules/_libkperf/Symbol.py +++ b/python/modules/_libkperf/Symbol.py @@ -1,6 +1,6 @@ """ Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. -gala-gopher licensed under the Mulan PSL v2. +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 diff --git a/python/modules/_libkperf/__init__.py b/python/modules/_libkperf/__init__.py index 2241467cec14c31a4f4b2e2e72a88314ae374ddf..23437b652eb2b6d637e8253980ff6a3687068ba8 100644 --- a/python/modules/_libkperf/__init__.py +++ b/python/modules/_libkperf/__init__.py @@ -1,6 +1,6 @@ """ Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. -gala-gopher licensed under the Mulan PSL v2. +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 diff --git a/python/modules/kperf/__init__.py b/python/modules/kperf/__init__.py index 64fd17d77884fca9dc4eb236b56a6ed4742ddb28..8090b824fe597d6b135c3564fe855b5557c90368 100644 --- a/python/modules/kperf/__init__.py +++ b/python/modules/kperf/__init__.py @@ -1,6 +1,6 @@ """ Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. -gala-gopher licensed under the Mulan PSL v2. +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 diff --git a/python/modules/kperf/perror.py b/python/modules/kperf/perror.py index b293c163d20aabeeb90678b6bb76e7a6c35e9f5d..df59178afbadd1a79b2c1f0f8bab4cf1d8dece4d 100644 --- a/python/modules/kperf/perror.py +++ b/python/modules/kperf/perror.py @@ -1,6 +1,6 @@ """ Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. -gala-gopher licensed under the Mulan PSL v2. +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 diff --git a/python/modules/kperf/pmu.py b/python/modules/kperf/pmu.py index ecfb62122351184b50e724e0d89470de52eb3398..67ebca322be86eb11c998a87d4905660493afcee 100644 --- a/python/modules/kperf/pmu.py +++ b/python/modules/kperf/pmu.py @@ -1,6 +1,6 @@ """ Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. -gala-gopher licensed under the Mulan PSL v2. +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 diff --git a/python/modules/ksym/__init__.py b/python/modules/ksym/__init__.py index e6a541f1394c08e8c1adb3bf789bddf68061bb15..d9519de35bb22817526a73d3fadf3e503d22fb3c 100644 --- a/python/modules/ksym/__init__.py +++ b/python/modules/ksym/__init__.py @@ -1,6 +1,6 @@ """ Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. -gala-gopher licensed under the Mulan PSL v2. +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 diff --git a/python/modules/ksym/symbol.py b/python/modules/ksym/symbol.py index c02f16d022fce03b0c2c98eb2d6260ba7e3a34cc..2692fa11f27ec77f8155287a6bda4153e3dc3c19 100644 --- a/python/modules/ksym/symbol.py +++ b/python/modules/ksym/symbol.py @@ -1,6 +1,6 @@ """ Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. -gala-gopher licensed under the Mulan PSL v2. +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 diff --git a/python/modules/setup.py.in b/python/modules/setup.py.in index 0785ba025838ca020f598d79d749b9064e7e8055..89204b9eaa3145e786934e08ef408131ddfb02f2 100644 --- a/python/modules/setup.py.in +++ b/python/modules/setup.py.in @@ -1,6 +1,6 @@ """ Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. -gala-gopher licensed under the Mulan PSL v2. +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 diff --git a/symbol/name_resolve.cpp b/symbol/name_resolve.cpp index ec7b3a096a9bb2896db15cd7ff6be39508ed638d..cf063ddf505d793a59b77f035f75808c0eea2c82 100644 --- a/symbol/name_resolve.cpp +++ b/symbol/name_resolve.cpp @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 diff --git a/symbol/name_resolve.h b/symbol/name_resolve.h index 09c6bafbcff16e60f6ec06afe7de243e6af3b8a0..28bae144f7887077dc70d5c5bfefd0b65743a2f9 100644 --- a/symbol/name_resolve.h +++ b/symbol/name_resolve.h @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 diff --git a/symbol/symbol.cpp b/symbol/symbol.cpp index 29ba621c31b29492b8c483f99079e2504b14e93e..e30b5a3a4d27d519d7d3a75ae56f8aee670ec63a 100644 --- a/symbol/symbol.cpp +++ b/symbol/symbol.cpp @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 diff --git a/symbol/symbol.h b/symbol/symbol.h index d4529435e0332e0492f9c60fbe4e95b0b29f5921..aadd51d41e9d4d2ca8db89c2f0be2541ab7a5102 100644 --- a/symbol/symbol.h +++ b/symbol/symbol.h @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 diff --git a/symbol/symbol_resolve.cpp b/symbol/symbol_resolve.cpp index 7c0da16c7ebb1da0393317a0b7cc72c5f6928a50..b44cfffee12dce3146f5bb4cbec459d733eea755 100644 --- a/symbol/symbol_resolve.cpp +++ b/symbol/symbol_resolve.cpp @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 @@ -949,9 +949,9 @@ int SymbolResolve::RecordKernel() strcpy(data->symbolName, name); data->addr = addr; data->fileName = InitChar(KERNEL_NAME_LEN); - strcpy(data->fileName, "KERNEL"); + strcpy(data->fileName, "[kernel]"); data->module = InitChar(KERNEL_NAME_LEN); - strcpy(data->module, "KERNEL"); + strcpy(data->module, "[kernel]"); data->lineNum = 0; this->ksymArray.emplace_back(data); } diff --git a/symbol/symbol_resolve.h b/symbol/symbol_resolve.h index 48ec5142c04bd8cd39ab88da1cd72193dcdca388..134bbdf537e607e4ef8221e92ccacbb6239ec971 100644 --- a/symbol/symbol_resolve.h +++ b/symbol/symbol_resolve.h @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 diff --git a/test/test_perf/test_api.cpp b/test/test_perf/test_api.cpp index 84fe470563830fa842cca3cefc37663461694099..0056c525514fb6b608e3961f5a8cbcb0a3ee1967 100644 --- a/test/test_perf/test_api.cpp +++ b/test/test_perf/test_api.cpp @@ -388,7 +388,53 @@ TEST_F(TestAPI, CollectInvalidTime) ASSERT_EQ(Perrorno(), LIBPERF_ERR_INVALID_TIME); } -TEST_F(TestAPI, RaiseNumFd) +TEST_F(TestAPI, TestRaiseNumFd) +{ + // Given (setup) + auto attr = GetPmuAttribute(); + auto pid = RunTestApp("test_12threads"); + attr.pidList[0] = pid; + attr.numPid = 1; + std::cout << "pid:" << attr.pidList[0] << std::endl; + sleep(1); // Wait for all threads to start + int numChildTid = 0; + int* childTidList = GetChildTid(attr.pidList[0], &numChildTid); + int numCpu = attr.cpuList == nullptr ? sysconf(_SC_NPROCESSORS_ONLN) : attr.numCpu; + std::cout << "required fd:" << numCpu * numChildTid << std::endl; + + unsigned long setNumFd = numCpu * numChildTid - 100; + struct rlimit currentlim; + getrlimit(RLIMIT_NOFILE, ¤tlim); + struct rlimit rlim { + .rlim_cur = setNumFd, .rlim_max = currentlim.rlim_max, + }; + if (setrlimit(RLIMIT_NOFILE, &rlim) == 0) { + std::cout << "setrlimit rlim_cur:" << setNumFd << std::endl; + } else { + std::cout << "currentlim rlim_cur:" << currentlim.rlim_cur << std::endl; + std::cout << "currentlim rlim_max:" << currentlim.rlim_max << std::endl; + } + + int pd = PmuOpen(SAMPLING, &attr); + std::cout << "pd:" << pd << std::endl; + PmuEnable(pd); + // Due to collecting low load applications, collect for long time to ensure pmudata data is present + sleep(3); + + // When (execution) + struct PmuData* pmuData = nullptr; + int len = PmuRead(pd, &pmuData); + std::cout << "len:" << len << std::endl; + + // Then (verification) + ASSERT_GT(len, 0); + + KillApp(pid); + PmuDisable(pd); + PmuDataFree(pmuData); +} + +TEST_F(TestAPI, RaiseNumFdFunc) { struct rlimit currentlim; ASSERT_NE(getrlimit(RLIMIT_NOFILE, ¤tlim), -1); diff --git a/util/common.cpp b/util/common.cpp index a13efe674cf48eaf18cb950d9f722d4e39ed16ec..e65df0632ddbd076cb86c7f005ee291558b3cf04 100644 --- a/util/common.cpp +++ b/util/common.cpp @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 diff --git a/util/common.h b/util/common.h index 1e324a23298ffe827ad09311894f58d558017fb1..fd67137543fb027a8d39942510d13e39f697e9c4 100644 --- a/util/common.h +++ b/util/common.h @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 diff --git a/util/cpu_map.cpp b/util/cpu_map.cpp index f085fd62702b3c26dfd192cdd04b543c275afd5d..a855f7e7a8f226df6dc9008350322c6cf8f60957 100644 --- a/util/cpu_map.cpp +++ b/util/cpu_map.cpp @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 diff --git a/util/cpu_map.h b/util/cpu_map.h index 2786fde3a3ab7c7510d8124dfc3b809cbde51416..b8820a109bb448bbe70a6fc74f44cf2632bf62f6 100644 --- a/util/cpu_map.h +++ b/util/cpu_map.h @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 diff --git a/util/linked_list.h b/util/linked_list.h index ea0e687b5aa16e1c962c8875fd2c49ff6ddcba1c..8ceb67ef4550853b1dfe9c877af0c0edd24d1a1e 100644 --- a/util/linked_list.h +++ b/util/linked_list.h @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 diff --git a/util/log.h b/util/log.h index 2a860614dc6f371d10a1b05d8c114ffde04d064d..fa642a883299a7d777360de5afd45516a6ce7064 100644 --- a/util/log.h +++ b/util/log.h @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 diff --git a/util/pcerr.cpp b/util/pcerr.cpp index ad4fcb7f7fb3c74d9dfd9d7304db40b8b72a3bbf..862aa842621a4902a1d88b0a308d4c9ad7892352 100644 --- a/util/pcerr.cpp +++ b/util/pcerr.cpp @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 diff --git a/util/pcerr.h b/util/pcerr.h index 98f225c715e7dcfe3286e1e9f9ba278dd6c5006d..8c43c4ab297601ee427fdf7dc3d3babd13478038 100644 --- a/util/pcerr.h +++ b/util/pcerr.h @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 diff --git a/util/process_map.cpp b/util/process_map.cpp index 96da01f1986e55dd7ae6b2823a6fa6365c1db53b..d6b88e0005d363cf8709ea3fa6ee6836c893f5f0 100644 --- a/util/process_map.cpp +++ b/util/process_map.cpp @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 diff --git a/util/process_map.h b/util/process_map.h index 937d9927c40d3c49aa8494e37548b43b65168b9a..15f0b09d1c548208d67bd7f301c9fa217c715558 100644 --- a/util/process_map.h +++ b/util/process_map.h @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 diff --git a/util/safe_handler.h b/util/safe_handler.h index 302a5eb7c87607a1bc25e43b94fb7e70a437f43e..673c8348e05979730991fa0112830839288429f7 100644 --- a/util/safe_handler.h +++ b/util/safe_handler.h @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 diff --git a/util/util_time.cpp b/util/util_time.cpp index 8f63e8342c804db3e270fca51a6303088642614e..73f2d07e43b0856b7b95eeb654274866855eab80 100644 --- a/util/util_time.cpp +++ b/util/util_time.cpp @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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 diff --git a/util/util_time.h b/util/util_time.h index 42a3d280a79b55ec93dd185e277f4b811f7ee034..60e20adcf4fe23de00582d63b377e517f6347904 100644 --- a/util/util_time.h +++ b/util/util_time.h @@ -1,6 +1,6 @@ /****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2024. All rights reserved. - * gala-gopher licensed under the Mulan PSL v2. + * 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