mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
libsysprof: style cleanup
This commit is contained in:
@ -293,12 +293,11 @@ static gboolean
|
|||||||
sysprof_perf_counter_dispatch (gpointer user_data)
|
sysprof_perf_counter_dispatch (gpointer user_data)
|
||||||
{
|
{
|
||||||
SysprofPerfCounter *self = user_data;
|
SysprofPerfCounter *self = user_data;
|
||||||
guint i;
|
|
||||||
|
|
||||||
g_assert (self != NULL);
|
g_assert (self != NULL);
|
||||||
g_assert (self->info != NULL);
|
g_assert (self->info != NULL);
|
||||||
|
|
||||||
for (i = 0; i < self->info->len; i++)
|
for (guint i = 0; i < self->info->len; i++)
|
||||||
{
|
{
|
||||||
SysprofPerfCounterInfo *info = g_ptr_array_index (self->info, i);
|
SysprofPerfCounterInfo *info = g_ptr_array_index (self->info, i);
|
||||||
|
|
||||||
|
|||||||
@ -592,8 +592,7 @@ sysprof_perf_source_start_pid (SysprofPerfSource *self,
|
|||||||
gulong flags = 0;
|
gulong flags = 0;
|
||||||
gint ncpu = g_get_num_processors ();
|
gint ncpu = g_get_num_processors ();
|
||||||
gint cpu = 0;
|
gint cpu = 0;
|
||||||
gint fd;
|
gint fd = -1;
|
||||||
gint i;
|
|
||||||
|
|
||||||
g_assert (SYSPROF_IS_PERF_SOURCE (self));
|
g_assert (SYSPROF_IS_PERF_SOURCE (self));
|
||||||
|
|
||||||
@ -661,12 +660,10 @@ sysprof_perf_source_start_pid (SysprofPerfSource *self,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < G_N_ELEMENTS(optional_tracepoints); i++)
|
for (guint i = 0; i < G_N_ELEMENTS(optional_tracepoints); i++)
|
||||||
{
|
sysprof_perf_source_add_optional_tracepoint (self, pid, cpu,
|
||||||
sysprof_perf_source_add_optional_tracepoint (self, pid, cpu,
|
&optional_tracepoints[i],
|
||||||
&optional_tracepoints[i],
|
error);
|
||||||
error);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|||||||
Reference in New Issue
Block a user