1 /* 2 * Copyright (c) 2022 Huawei Device Co., Ltd. 3 * SPDX-License-Identifier: GPL-2.0 4 * 5 * Legacy blkg rwstat helpers enabled by CONFIG_BLK_CGROUP_RWSTAT. 6 * Do not use in new code. 7 * 8 * Unless required by applicable law or agreed to in writing, software 9 * distributed under the License is distributed on an "AS IS" BASIS, 10 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 * See the License for the specific language governing permissions and 12 * limitations under the License. 13 */ 14 15 #undef TRACE_SYSTEM 16 #define TRACE_SYSTEM emmc 17 18 #define TRACE_INCLUDE_PATH trace/hooks 19 #if !defined(_TRACE_HOOKS_EMMC_H) || defined(TRACE_HEADER_MULTI_READ) 20 #define _TRACE_HOOKS_EMMC_H 21 22 #include <trace/hooks/vendor_hooks.h> 23 #include <linux/tracepoint.h> 24 25 DECLARE_HOOK(vendor_aml_emmc_partition, 26 TP_PROTO(unsigned long prot, int *err), 27 TP_ARGS(prot, err) 28 ); 29 30 DECLARE_HOOK(vendor_fake_boot_partition, 31 TP_PROTO(unsigned long prot, int *err), 32 TP_ARGS(prot, err) 33 ); 34 35 #endif 36 37 /* This part must be outside protection */ 38 #include <trace/define_trace.h> 39