mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
libsysprof: whitespace
This commit is contained in:
@ -374,14 +374,14 @@ sysprof_perf_source_handle_event (SysprofPerfCounterEvent *event,
|
|||||||
memcpy (&time, event->mmap.filename + offset, sizeof time);
|
memcpy (&time, event->mmap.filename + offset, sizeof time);
|
||||||
|
|
||||||
sysprof_capture_writer_add_map (self->writer,
|
sysprof_capture_writer_add_map (self->writer,
|
||||||
time,
|
time,
|
||||||
cpu,
|
cpu,
|
||||||
event->mmap.pid,
|
event->mmap.pid,
|
||||||
event->mmap.addr,
|
event->mmap.addr,
|
||||||
event->mmap.addr + event->mmap.len,
|
event->mmap.addr + event->mmap.len,
|
||||||
event->mmap.pgoff,
|
event->mmap.pgoff,
|
||||||
0,
|
0,
|
||||||
event->mmap.filename);
|
event->mmap.filename);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -397,8 +397,7 @@ sysprof_perf_source_handle_event (SysprofPerfCounterEvent *event,
|
|||||||
GINT_TO_POINTER (event->callchain.identifier));
|
GINT_TO_POINTER (event->callchain.identifier));
|
||||||
if (tp_desc)
|
if (tp_desc)
|
||||||
{
|
{
|
||||||
sysprof_perf_source_handle_tracepoint (self, cpu, &event->tracepoint,
|
sysprof_perf_source_handle_tracepoint (self, cpu, &event->tracepoint, tp_desc);
|
||||||
tp_desc);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -581,8 +580,7 @@ sysprof_perf_source_add_optional_tracepoint (SysprofPerfSource *s
|
|||||||
* The event IDs start from 0 at boot, so meh.
|
* The event IDs start from 0 at boot, so meh.
|
||||||
*/
|
*/
|
||||||
g_assert (id <= 0xffffffff);
|
g_assert (id <= 0xffffffff);
|
||||||
g_hash_table_insert (self->tracepoint_event_ids,
|
g_hash_table_insert (self->tracepoint_event_ids, GINT_TO_POINTER (id), tp_desc);
|
||||||
GINT_TO_POINTER (id), tp_desc);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
@ -759,7 +757,7 @@ sysprof_perf_source_set_writer (SysprofSource *source,
|
|||||||
|
|
||||||
static void
|
static void
|
||||||
sysprof_perf_source_add_pid (SysprofSource *source,
|
sysprof_perf_source_add_pid (SysprofSource *source,
|
||||||
GPid pid)
|
GPid pid)
|
||||||
{
|
{
|
||||||
SysprofPerfSource *self = (SysprofPerfSource *)source;
|
SysprofPerfSource *self = (SysprofPerfSource *)source;
|
||||||
|
|
||||||
@ -808,7 +806,7 @@ sysprof_perf_source_new (void)
|
|||||||
|
|
||||||
void
|
void
|
||||||
sysprof_perf_source_set_target_pid (SysprofPerfSource *self,
|
sysprof_perf_source_set_target_pid (SysprofPerfSource *self,
|
||||||
GPid pid)
|
GPid pid)
|
||||||
{
|
{
|
||||||
g_return_if_fail (SYSPROF_IS_PERF_SOURCE (self));
|
g_return_if_fail (SYSPROF_IS_PERF_SOURCE (self));
|
||||||
g_return_if_fail (pid >= -1);
|
g_return_if_fail (pid >= -1);
|
||||||
|
|||||||
Reference in New Issue
Block a user