trace_events.c (5013f454a352cce8e62162976026a9c472595e42) | trace_events.c (f2cc020d7876de7583feb52ec939a32419cf9468) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * event tracer 4 * 5 * Copyright (C) 2008 Red Hat Inc, Steven Rostedt <srostedt@redhat.com> 6 * 7 * - Added format output of fields of the trace point. 8 * This was based off of work by Tom Zanussi <tzanussi@gmail.com>. --- 2632 unchanged lines hidden (view full) --- 2641 /* events are usually grouped together with systems */ 2642 if (!last_system || call->class->system != last_system) { 2643 first = true; 2644 last_i = 0; 2645 last_system = call->class->system; 2646 } 2647 2648 /* | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * event tracer 4 * 5 * Copyright (C) 2008 Red Hat Inc, Steven Rostedt <srostedt@redhat.com> 6 * 7 * - Added format output of fields of the trace point. 8 * This was based off of work by Tom Zanussi <tzanussi@gmail.com>. --- 2632 unchanged lines hidden (view full) --- 2641 /* events are usually grouped together with systems */ 2642 if (!last_system || call->class->system != last_system) { 2643 first = true; 2644 last_i = 0; 2645 last_system = call->class->system; 2646 } 2647 2648 /* |
2649 * Since calls are grouped by systems, the likelyhood that the | 2649 * Since calls are grouped by systems, the likelihood that the |
2650 * next call in the iteration belongs to the same system as the 2651 * previous call is high. As an optimization, we skip searching 2652 * for a map[] that matches the call's system if the last call 2653 * was from the same system. That's what last_i is for. If the 2654 * call has the same system as the previous call, then last_i 2655 * will be the index of the first map[] that has a matching 2656 * system. 2657 */ --- 43 unchanged lines hidden (view full) --- 2701 2702 if (eventdir_initialized) 2703 return event_create_dir(tr->event_dir, file); 2704 else 2705 return event_define_fields(call); 2706} 2707 2708/* | 2650 * next call in the iteration belongs to the same system as the 2651 * previous call is high. As an optimization, we skip searching 2652 * for a map[] that matches the call's system if the last call 2653 * was from the same system. That's what last_i is for. If the 2654 * call has the same system as the previous call, then last_i 2655 * will be the index of the first map[] that has a matching 2656 * system. 2657 */ --- 43 unchanged lines hidden (view full) --- 2701 2702 if (eventdir_initialized) 2703 return event_create_dir(tr->event_dir, file); 2704 else 2705 return event_define_fields(call); 2706} 2707 2708/* |
2709 * Just create a decriptor for early init. A descriptor is required | 2709 * Just create a descriptor for early init. A descriptor is required |
2710 * for enabling events at boot. We want to enable events before 2711 * the filesystem is initialized. 2712 */ 2713static int 2714__trace_early_add_new_event(struct trace_event_call *call, 2715 struct trace_array *tr) 2716{ 2717 struct trace_event_file *file; --- 1244 unchanged lines hidden --- | 2710 * for enabling events at boot. We want to enable events before 2711 * the filesystem is initialized. 2712 */ 2713static int 2714__trace_early_add_new_event(struct trace_event_call *call, 2715 struct trace_array *tr) 2716{ 2717 struct trace_event_file *file; --- 1244 unchanged lines hidden --- |