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