/* * Copyright (c) 2017, Mellanox Technologies. All rights reserved. * * This software is available to you under a choice of one of two * licenses. You may choose to be licensed under the terms of the GNU * General Public License (GPL) Version 2, available from the file * COPYING in the main directory of this source tree, or the * OpenIB.org BSD license below: * * Redistribution and use in source and binary forms, with or * without modification, are permitted provided that the following * conditions are met: * * - Redistributions of source code must retain the above * copyright notice, this list of conditions and the following * disclaimer. * * - Redistributions in binary form must reproduce the above * copyright notice, this list of conditions and the following * disclaimer in the documentation and/or other materials * provided with the distribution. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #define CREATE_TRACE_POINTS #include "fs_tracepoint.h" #include <linux/stringify.h> #define DECLARE_MASK_VAL(type, name) … #define MASK_VAL(type, spec, name, mask, val, fld) … #define MASK_VAL_BE(type, spec, name, mask, val, fld) … #define GET_MASKED_VAL(name) … #define GET_MASK_VAL(name, type, mask, val, fld) … #define PRINT_MASKED_VAL(name, p, format) … #define PRINT_MASKED_VALP(name, cast, p, format) … static void print_lyr_2_4_hdrs(struct trace_seq *p, const u32 *mask, const u32 *value) { … } static void print_misc_parameters_hdrs(struct trace_seq *p, const u32 *mask, const u32 *value) { … } const char *parse_fs_hdrs(struct trace_seq *p, u8 match_criteria_enable, const u32 *mask_outer, const u32 *mask_misc, const u32 *mask_inner, const u32 *value_outer, const u32 *value_misc, const u32 *value_inner) { … } static const char *fs_dest_range_field_to_str(enum mlx5_flow_dest_range_field field) { … } const char *parse_fs_dst(struct trace_seq *p, const struct mlx5_flow_destination *dst, u32 counter_id) { … } EXPORT_TRACEPOINT_SYMBOL(…); EXPORT_TRACEPOINT_SYMBOL(…); EXPORT_TRACEPOINT_SYMBOL(…); EXPORT_TRACEPOINT_SYMBOL(…); EXPORT_TRACEPOINT_SYMBOL(…); EXPORT_TRACEPOINT_SYMBOL(…); EXPORT_TRACEPOINT_SYMBOL(…); EXPORT_TRACEPOINT_SYMBOL(…);