/* * Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the Free Software Foundation. * * This program is distributed in the hope it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #undef TRACE_SYSTEM #define TRACE_SYSTEM input_cfboost #if !defined(_TRACE_INPUT_CFBOOST_H) || defined(TRACE_HEADER_MULTI_READ) #define _TRACE_INPUT_CFBOOST_H #include #include TRACE_EVENT(input_cfboost_params, TP_PROTO(const char *name, unsigned int freq, unsigned int emc, unsigned int gpu, unsigned int cpus, unsigned long time), TP_ARGS(name, freq, emc, cpus, gpu, time), TP_STRUCT__entry( __field(const char *, name) __field(unsigned int, freq) __field(unsigned int, emc) __field(unsigned int, gpu) __field(unsigned int, cpus) __field(unsigned long, time) ), TP_fast_assign( __entry->name = name; __entry->freq = freq; __entry->emc = emc; __entry->gpu = gpu; __entry->cpus = cpus; __entry->time = time; ), TP_printk("name=%s freq=%u emc=%u gpu=%u, cpus=%u, time=%lu", __entry->name, __entry->freq, __entry->emc, __entry->gpu, __entry->cpus, __entry->time) ); TRACE_EVENT(input_cfboost_event, TP_PROTO(const char *name, unsigned int type, unsigned int code, int value), TP_ARGS(name, type, code, value), TP_STRUCT__entry( __field(const char *, name) __field(unsigned int, type) __field(unsigned int, code) __field(int, value) ), TP_fast_assign( __entry->name = name; __entry->type = type; __entry->code = code; __entry->value = value; ), TP_printk("name=%s type=%u code=%u value=%d", __entry->name, __entry->type, __entry->code, __entry->value) ); #endif /* _TRACE_INPUT_CFBOOST_H */ /* This part must be outside protection */ #include