lipengfei28 commented on code in PR #13978: URL: https://github.com/apache/nuttx/pull/13978#discussion_r1794505119
########## arch/arm64/src/common/arm64_pmuv3.h: ########## @@ -0,0 +1,176 @@ +/**************************************************************************** + * arch/arm64/src/common/arm64_pmuv3.h + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. The + * ASF licenses this file to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + ****************************************************************************/ + +#ifndef __ARCH_ARM64_SRC_COMMON_ARM64_PMUV3_H +#define __ARCH_ARM64_SRC_COMMON_ARM64_PMUV3_H + +/**************************************************************************** + * Included Files + ****************************************************************************/ + +#include <debug.h> +#include <perf/arm_pmuv3.h> +#include "arm64_arch.h" + +/**************************************************************************** + * Pre-processor Definitions + ****************************************************************************/ + +#define RETURN_READ_PMEVCNTRN(n) \ Review Comment: to other pr ########## drivers/perf/CMakeLists.txt: ########## @@ -0,0 +1,34 @@ +# ############################################################################## +# drivers/perf/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## +set(SRCS) + +if(CONFIG_SCHED_PERF_EVENTS) + + if(CONFIG_ARCH_ARM64) + list(APPEND SRCS arm_pmu.c) + list(APPEND SRCS arm_pmuv3.c) + elseif(CONFIG_ARCH_ARM) + list(APPEND SRCS arm_pmu.c) + list(APPEND SRCS arm_pmuv3.c) Review Comment: to other pr -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
