From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D4F913858C3A; Wed, 13 Oct 2021 17:20:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D4F913858C3A From: "fche at redhat dot com" To: systemtap@sourceware.org Subject: [Bug runtime/28449] New: loss of cross-cpu output ordering Date: Wed, 13 Oct 2021 17:20:32 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: systemtap X-Bugzilla-Component: runtime X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: fche at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: systemtap at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: systemtap@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Systemtap mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Oct 2021 17:20:32 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28449 Bug ID: 28449 Summary: loss of cross-cpu output ordering Product: systemtap Version: unspecified Status: NEW Severity: normal Priority: P2 Component: runtime Assignee: systemtap at sourceware dot org Reporter: fche at redhat dot com Target Milestone: --- Since making bulk-mode the default back in commit 8819e2a04596d, we lost a property of total ordering for the normal output stream (across CPUs).=20 Userspace cannot reorder messages from the individual trace$n buffers, beca= use the runtime no longer sends the _stp_trace->sequence number to userspace.=20 (This breaks stp_merge but whatever, it's probably not used and we could deprecate it.) We should bring the _stp_trace .sequence bit back (snippets of the !NO_PERCPU_HEADERS branch), and have stapio threads synchronize lightly for sorting on the output side. --=20 You are receiving this mail because: You are the assignee for the bug.=