libtraceevent: Show migrate-disable field

Since Linux kernel 5.15 (specifically with the addition of 54357f0c9149c
("tracing: Add migrate-disabled counter to tracing output.")), the
common_preempt_count field of each event also held the "migrate-disable"
field in the most significant byte. This needs to be accounted for as when
the migrate disable field is set, it will show:

systemd--268     3d..3 15368.334398: rcu_dyntick:          --= 4000000000000002 4000000000000000 0x63c
systemd--268     3d..13 15368.334399: rcu_dyntick:          ++= 4000000000000000 4000000000000002 0x63c
systemd--268     3d..12 15368.334400: irq_disable:          caller=ct_irq_enter_irqson+0x17 parent=0x0
systemd--268     3d..13 15368.334400: rcu_dyntick:          --= 4000000000000002 4000000000000000 0x63c
systemd--268     3d..12 15368.334401: rcu_dyntick:          ++= 4000000000000000 4000000000000002 0x63c

Where the events above have:

   preempt-count	migrate-disable
   -------------        ---------------
	3			0
	3			1
	2			1
	3			1
	2			1

That is, in the above print of "3d..13", the '3' of the '13' is the
preempt count and the '1' is the migrate disable. But it really should be:

systemd--268     3d..3. 15368.334398: rcu_dyntick:          --= 4000000000000002 4000000000000000 0x63c
systemd--268     3d..31 15368.334399: rcu_dyntick:          ++= 4000000000000000 4000000000000002 0x63c
systemd--268     3d..21 15368.334400: irq_disable:          caller=ct_irq_enter_irqson+0x17 parent=0x0
systemd--268     3d..31 15368.334400: rcu_dyntick:          --= 4000000000000002 4000000000000000 0x63c
systemd--268     3d..21 15368.334401: rcu_dyntick:          ++= 4000000000000000 4000000000000002 0x63c

Where the migrate disabled is always displayed with a '.' when zero and
its hex count when set.

Link: https://lore.kernel.org/linux-trace-devel/20230109184034.359f10ad@gandalf.local.home

Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
1 file changed