162306a36Sopenharmony_ci/* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */ 262306a36Sopenharmony_ci/* Copyright (c) 2018 Mellanox Technologies. All rights reserved */ 362306a36Sopenharmony_ci 462306a36Sopenharmony_ci#undef TRACE_SYSTEM 562306a36Sopenharmony_ci#define TRACE_SYSTEM objagg 662306a36Sopenharmony_ci 762306a36Sopenharmony_ci#if !defined(__TRACE_OBJAGG_H) || defined(TRACE_HEADER_MULTI_READ) 862306a36Sopenharmony_ci#define __TRACE_OBJAGG_H 962306a36Sopenharmony_ci 1062306a36Sopenharmony_ci#include <linux/tracepoint.h> 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_cistruct objagg; 1362306a36Sopenharmony_cistruct objagg_obj; 1462306a36Sopenharmony_ci 1562306a36Sopenharmony_ciTRACE_EVENT(objagg_create, 1662306a36Sopenharmony_ci TP_PROTO(const struct objagg *objagg), 1762306a36Sopenharmony_ci 1862306a36Sopenharmony_ci TP_ARGS(objagg), 1962306a36Sopenharmony_ci 2062306a36Sopenharmony_ci TP_STRUCT__entry( 2162306a36Sopenharmony_ci __field(const void *, objagg) 2262306a36Sopenharmony_ci ), 2362306a36Sopenharmony_ci 2462306a36Sopenharmony_ci TP_fast_assign( 2562306a36Sopenharmony_ci __entry->objagg = objagg; 2662306a36Sopenharmony_ci ), 2762306a36Sopenharmony_ci 2862306a36Sopenharmony_ci TP_printk("objagg %p", __entry->objagg) 2962306a36Sopenharmony_ci); 3062306a36Sopenharmony_ci 3162306a36Sopenharmony_ciTRACE_EVENT(objagg_destroy, 3262306a36Sopenharmony_ci TP_PROTO(const struct objagg *objagg), 3362306a36Sopenharmony_ci 3462306a36Sopenharmony_ci TP_ARGS(objagg), 3562306a36Sopenharmony_ci 3662306a36Sopenharmony_ci TP_STRUCT__entry( 3762306a36Sopenharmony_ci __field(const void *, objagg) 3862306a36Sopenharmony_ci ), 3962306a36Sopenharmony_ci 4062306a36Sopenharmony_ci TP_fast_assign( 4162306a36Sopenharmony_ci __entry->objagg = objagg; 4262306a36Sopenharmony_ci ), 4362306a36Sopenharmony_ci 4462306a36Sopenharmony_ci TP_printk("objagg %p", __entry->objagg) 4562306a36Sopenharmony_ci); 4662306a36Sopenharmony_ci 4762306a36Sopenharmony_ciTRACE_EVENT(objagg_obj_create, 4862306a36Sopenharmony_ci TP_PROTO(const struct objagg *objagg, 4962306a36Sopenharmony_ci const struct objagg_obj *obj), 5062306a36Sopenharmony_ci 5162306a36Sopenharmony_ci TP_ARGS(objagg, obj), 5262306a36Sopenharmony_ci 5362306a36Sopenharmony_ci TP_STRUCT__entry( 5462306a36Sopenharmony_ci __field(const void *, objagg) 5562306a36Sopenharmony_ci __field(const void *, obj) 5662306a36Sopenharmony_ci ), 5762306a36Sopenharmony_ci 5862306a36Sopenharmony_ci TP_fast_assign( 5962306a36Sopenharmony_ci __entry->objagg = objagg; 6062306a36Sopenharmony_ci __entry->obj = obj; 6162306a36Sopenharmony_ci ), 6262306a36Sopenharmony_ci 6362306a36Sopenharmony_ci TP_printk("objagg %p, obj %p", __entry->objagg, __entry->obj) 6462306a36Sopenharmony_ci); 6562306a36Sopenharmony_ci 6662306a36Sopenharmony_ciTRACE_EVENT(objagg_obj_destroy, 6762306a36Sopenharmony_ci TP_PROTO(const struct objagg *objagg, 6862306a36Sopenharmony_ci const struct objagg_obj *obj), 6962306a36Sopenharmony_ci 7062306a36Sopenharmony_ci TP_ARGS(objagg, obj), 7162306a36Sopenharmony_ci 7262306a36Sopenharmony_ci TP_STRUCT__entry( 7362306a36Sopenharmony_ci __field(const void *, objagg) 7462306a36Sopenharmony_ci __field(const void *, obj) 7562306a36Sopenharmony_ci ), 7662306a36Sopenharmony_ci 7762306a36Sopenharmony_ci TP_fast_assign( 7862306a36Sopenharmony_ci __entry->objagg = objagg; 7962306a36Sopenharmony_ci __entry->obj = obj; 8062306a36Sopenharmony_ci ), 8162306a36Sopenharmony_ci 8262306a36Sopenharmony_ci TP_printk("objagg %p, obj %p", __entry->objagg, __entry->obj) 8362306a36Sopenharmony_ci); 8462306a36Sopenharmony_ci 8562306a36Sopenharmony_ciTRACE_EVENT(objagg_obj_get, 8662306a36Sopenharmony_ci TP_PROTO(const struct objagg *objagg, 8762306a36Sopenharmony_ci const struct objagg_obj *obj, 8862306a36Sopenharmony_ci unsigned int refcount), 8962306a36Sopenharmony_ci 9062306a36Sopenharmony_ci TP_ARGS(objagg, obj, refcount), 9162306a36Sopenharmony_ci 9262306a36Sopenharmony_ci TP_STRUCT__entry( 9362306a36Sopenharmony_ci __field(const void *, objagg) 9462306a36Sopenharmony_ci __field(const void *, obj) 9562306a36Sopenharmony_ci __field(unsigned int, refcount) 9662306a36Sopenharmony_ci ), 9762306a36Sopenharmony_ci 9862306a36Sopenharmony_ci TP_fast_assign( 9962306a36Sopenharmony_ci __entry->objagg = objagg; 10062306a36Sopenharmony_ci __entry->obj = obj; 10162306a36Sopenharmony_ci __entry->refcount = refcount; 10262306a36Sopenharmony_ci ), 10362306a36Sopenharmony_ci 10462306a36Sopenharmony_ci TP_printk("objagg %p, obj %p, refcount %u", 10562306a36Sopenharmony_ci __entry->objagg, __entry->obj, __entry->refcount) 10662306a36Sopenharmony_ci); 10762306a36Sopenharmony_ci 10862306a36Sopenharmony_ciTRACE_EVENT(objagg_obj_put, 10962306a36Sopenharmony_ci TP_PROTO(const struct objagg *objagg, 11062306a36Sopenharmony_ci const struct objagg_obj *obj, 11162306a36Sopenharmony_ci unsigned int refcount), 11262306a36Sopenharmony_ci 11362306a36Sopenharmony_ci TP_ARGS(objagg, obj, refcount), 11462306a36Sopenharmony_ci 11562306a36Sopenharmony_ci TP_STRUCT__entry( 11662306a36Sopenharmony_ci __field(const void *, objagg) 11762306a36Sopenharmony_ci __field(const void *, obj) 11862306a36Sopenharmony_ci __field(unsigned int, refcount) 11962306a36Sopenharmony_ci ), 12062306a36Sopenharmony_ci 12162306a36Sopenharmony_ci TP_fast_assign( 12262306a36Sopenharmony_ci __entry->objagg = objagg; 12362306a36Sopenharmony_ci __entry->obj = obj; 12462306a36Sopenharmony_ci __entry->refcount = refcount; 12562306a36Sopenharmony_ci ), 12662306a36Sopenharmony_ci 12762306a36Sopenharmony_ci TP_printk("objagg %p, obj %p, refcount %u", 12862306a36Sopenharmony_ci __entry->objagg, __entry->obj, __entry->refcount) 12962306a36Sopenharmony_ci); 13062306a36Sopenharmony_ci 13162306a36Sopenharmony_ciTRACE_EVENT(objagg_obj_parent_assign, 13262306a36Sopenharmony_ci TP_PROTO(const struct objagg *objagg, 13362306a36Sopenharmony_ci const struct objagg_obj *obj, 13462306a36Sopenharmony_ci const struct objagg_obj *parent, 13562306a36Sopenharmony_ci unsigned int parent_refcount), 13662306a36Sopenharmony_ci 13762306a36Sopenharmony_ci TP_ARGS(objagg, obj, parent, parent_refcount), 13862306a36Sopenharmony_ci 13962306a36Sopenharmony_ci TP_STRUCT__entry( 14062306a36Sopenharmony_ci __field(const void *, objagg) 14162306a36Sopenharmony_ci __field(const void *, obj) 14262306a36Sopenharmony_ci __field(const void *, parent) 14362306a36Sopenharmony_ci __field(unsigned int, parent_refcount) 14462306a36Sopenharmony_ci ), 14562306a36Sopenharmony_ci 14662306a36Sopenharmony_ci TP_fast_assign( 14762306a36Sopenharmony_ci __entry->objagg = objagg; 14862306a36Sopenharmony_ci __entry->obj = obj; 14962306a36Sopenharmony_ci __entry->parent = parent; 15062306a36Sopenharmony_ci __entry->parent_refcount = parent_refcount; 15162306a36Sopenharmony_ci ), 15262306a36Sopenharmony_ci 15362306a36Sopenharmony_ci TP_printk("objagg %p, obj %p, parent %p, parent_refcount %u", 15462306a36Sopenharmony_ci __entry->objagg, __entry->obj, 15562306a36Sopenharmony_ci __entry->parent, __entry->parent_refcount) 15662306a36Sopenharmony_ci); 15762306a36Sopenharmony_ci 15862306a36Sopenharmony_ciTRACE_EVENT(objagg_obj_parent_unassign, 15962306a36Sopenharmony_ci TP_PROTO(const struct objagg *objagg, 16062306a36Sopenharmony_ci const struct objagg_obj *obj, 16162306a36Sopenharmony_ci const struct objagg_obj *parent, 16262306a36Sopenharmony_ci unsigned int parent_refcount), 16362306a36Sopenharmony_ci 16462306a36Sopenharmony_ci TP_ARGS(objagg, obj, parent, parent_refcount), 16562306a36Sopenharmony_ci 16662306a36Sopenharmony_ci TP_STRUCT__entry( 16762306a36Sopenharmony_ci __field(const void *, objagg) 16862306a36Sopenharmony_ci __field(const void *, obj) 16962306a36Sopenharmony_ci __field(const void *, parent) 17062306a36Sopenharmony_ci __field(unsigned int, parent_refcount) 17162306a36Sopenharmony_ci ), 17262306a36Sopenharmony_ci 17362306a36Sopenharmony_ci TP_fast_assign( 17462306a36Sopenharmony_ci __entry->objagg = objagg; 17562306a36Sopenharmony_ci __entry->obj = obj; 17662306a36Sopenharmony_ci __entry->parent = parent; 17762306a36Sopenharmony_ci __entry->parent_refcount = parent_refcount; 17862306a36Sopenharmony_ci ), 17962306a36Sopenharmony_ci 18062306a36Sopenharmony_ci TP_printk("objagg %p, obj %p, parent %p, parent_refcount %u", 18162306a36Sopenharmony_ci __entry->objagg, __entry->obj, 18262306a36Sopenharmony_ci __entry->parent, __entry->parent_refcount) 18362306a36Sopenharmony_ci); 18462306a36Sopenharmony_ci 18562306a36Sopenharmony_ciTRACE_EVENT(objagg_obj_root_create, 18662306a36Sopenharmony_ci TP_PROTO(const struct objagg *objagg, 18762306a36Sopenharmony_ci const struct objagg_obj *obj), 18862306a36Sopenharmony_ci 18962306a36Sopenharmony_ci TP_ARGS(objagg, obj), 19062306a36Sopenharmony_ci 19162306a36Sopenharmony_ci TP_STRUCT__entry( 19262306a36Sopenharmony_ci __field(const void *, objagg) 19362306a36Sopenharmony_ci __field(const void *, obj) 19462306a36Sopenharmony_ci ), 19562306a36Sopenharmony_ci 19662306a36Sopenharmony_ci TP_fast_assign( 19762306a36Sopenharmony_ci __entry->objagg = objagg; 19862306a36Sopenharmony_ci __entry->obj = obj; 19962306a36Sopenharmony_ci ), 20062306a36Sopenharmony_ci 20162306a36Sopenharmony_ci TP_printk("objagg %p, obj %p", 20262306a36Sopenharmony_ci __entry->objagg, __entry->obj) 20362306a36Sopenharmony_ci); 20462306a36Sopenharmony_ci 20562306a36Sopenharmony_ciTRACE_EVENT(objagg_obj_root_destroy, 20662306a36Sopenharmony_ci TP_PROTO(const struct objagg *objagg, 20762306a36Sopenharmony_ci const struct objagg_obj *obj), 20862306a36Sopenharmony_ci 20962306a36Sopenharmony_ci TP_ARGS(objagg, obj), 21062306a36Sopenharmony_ci 21162306a36Sopenharmony_ci TP_STRUCT__entry( 21262306a36Sopenharmony_ci __field(const void *, objagg) 21362306a36Sopenharmony_ci __field(const void *, obj) 21462306a36Sopenharmony_ci ), 21562306a36Sopenharmony_ci 21662306a36Sopenharmony_ci TP_fast_assign( 21762306a36Sopenharmony_ci __entry->objagg = objagg; 21862306a36Sopenharmony_ci __entry->obj = obj; 21962306a36Sopenharmony_ci ), 22062306a36Sopenharmony_ci 22162306a36Sopenharmony_ci TP_printk("objagg %p, obj %p", 22262306a36Sopenharmony_ci __entry->objagg, __entry->obj) 22362306a36Sopenharmony_ci); 22462306a36Sopenharmony_ci 22562306a36Sopenharmony_ci#endif /* __TRACE_OBJAGG_H */ 22662306a36Sopenharmony_ci 22762306a36Sopenharmony_ci/* This part must be outside protection */ 22862306a36Sopenharmony_ci#include <trace/define_trace.h> 229