Merge branch 'gbsneto/sysprof-initial-counter-id' into 'master'

libsysprof-capture: Cut off first 8 bytes of initial counter id

See merge request GNOME/sysprof!134
This commit is contained in:
Christian Hergert
2025-03-31 21:53:16 +00:00

View File

@ -424,7 +424,7 @@ sysprof_collector_get (void)
#else
self->tid = self->pid;
#endif
self->next_counter_id = ((unsigned)self->pid << 16);
self->next_counter_id = (((unsigned)self->pid << 16) >> 8);
pthread_mutex_lock (&control_fd_lock);