Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1340203 > unrolled thread
| Started by | Steven Rostedt <rostedt@goodmis.org> |
|---|---|
| First post | 2016-02-23 04:30 +0100 |
| Last post | 2016-02-23 04:30 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH] tracing: don't macro-expand arguments before stringification in TP_printk Steven Rostedt <rostedt@goodmis.org> - 2016-02-23 04:30 +0100
| From | Steven Rostedt <rostedt@goodmis.org> |
|---|---|
| Date | 2016-02-23 04:30 +0100 |
| Subject | Re: [PATCH] tracing: don't macro-expand arguments before stringification in TP_printk |
| Message-ID | <r5bPH-7KL-5@gated-at.bofh.it> |
On Wed, 16 Dec 2015 01:28:12 +0100 Rasmus Villemoes <linux@rasmusvillemoes.dk> wrote: > Bah, just found 0462b5664b (ftrace: Output REC->var instead of > __entry->var for trace format). There's some magic here I don't > understand, but I'm wondering if '__entry' wouldn't do just as well as > 'REC' for the tools that try to parse these strings. > > Sorry for the late reply, but I just found this in my INBOX :-) Several tools already exist that use REC to parse. It would be ABI breakage to suddenly convert it to __entry. Not to mention, even in your example of: ((unsigned int) ((REC->dev) >> 20)), ((unsigned int) ((REC->dev) & ((1U << 20) - 1))) which came from MAJOR(__entry->dev), MINOR(__entry->dev), The parsing tools don't know how to parse MAJOR or MINOR but they do know how to do the above macro expansions. Just an FYI, -- Steve
Back to top | Article view | linux.kernel
csiph-web