dprintk() and gdprintk() to be compiled out when NDEBUG
All,
I'd like to propose to honor the 'd' in these functions' names (which I understand to mean "debug") in that such functions should be no-ops in non-debug builds. I'd then be inclined to introduce a gprintk() automatically adding XENLOG_GUEST and the printing of current using the %pv format. Quite likely the (mis-)use of these two functions may then temporarily result in messages not meant to be debugging ones to become hidden in non-debug builds. If others agree, I'd try to make one pass through the tree to try to identify such, but I'd like to ask others to also keep an eye on that aspect.
Jan
Quoted 12 lines · Jan Beulich
All,
I'd like to propose to honor the 'd' in these functions' names (which I understand to mean "debug") in that such functions should be no-ops in non-debug builds. I'd then be inclined to introduce a
gprintk()automatically addingXENLOG_GUESTand the printing of current using the %pv format. Quite likely the (mis-)use of these two functions may then temporarily result in messages not meant to be debugging ones to become hidden in non-debug builds. If others agree, I'd try to make one pass through the tree to try to identify such, but I'd like to ask others to also keep an eye on that aspect.
I agree. I suspect many of the existing gdprintk()s will need to turn into dprintk()s.
~Andrew
Quoted 13 lines
Quoted 1 line
Quoted 1 line · On 11.02.15 at 11:05, <[email protected]> wrote:
Quoted 10 lines · Jan Beulich
I'd like to propose to honor the 'd' in these functions' names (which I understand to mean "debug") in that such functions should be no-ops in non-debug builds. I'd then be inclined to introduce a
gprintk()automatically addingXENLOG_GUESTand the printing of current using the %pv format. Quite likely the (mis-)use of these two functions may then temporarily result in messages not meant to be debugging ones to become hidden in non-debug builds. If others agree, I'd try to make one pass through the tree to try to identify such, but I'd like to ask others to also keep an eye on that aspect.
Quoted 2 lines
I agree. I suspect many of the existing gdprintk()s will need to turn into dprintk()s.
Maybe, but that's yet another topic (unless you meant gprintk()s instead of dprintk()s).
Jan
Quoted 12 lines · Jan Beulich
Quoted 12 lines
Quoted 1 line
Quoted 1 line · On 11.02.15 at 11:05, <[email protected]> wrote:
Quoted 10 lines · Jan Beulich
I'd like to propose to honor the 'd' in these functions' names (which I understand to mean "debug") in that such functions should be no-ops in non-debug builds. I'd then be inclined to introduce a
gprintk()automatically addingXENLOG_GUESTand the printing of current using the %pv format. Quite likely the (mis-)use of these two functions may then temporarily result in messages not meant to be debugging ones to become hidden in non-debug builds. If others agree, I'd try to make one pass through the tree to try to identify such, but I'd like to ask others to also keep an eye on that aspect.
Quoted 4 lines
Quoted 2 lines
I agree. I suspect many of the existing gdprintk()s will need to turn into dprintk()s.
Maybe, but that's yet another topic (unless you meant gprintk()s instead of dprintk()s).
I did mean gprintk(). Sorry.
~Andrew
Quoted 7 lines · Jan Beulich
All,
I'd like to propose to honor the 'd' in these functions' names (which I understand to mean "debug") in that such functions should be no-ops in non-debug builds. I'd then be inclined to introduce a
gprintk()automatically addingXENLOG_GUESTand the printing of current using the %pv format.
Sounds fine to me.
Quoted 5 lines
Quite likely the (mis-)use of these
two functions may then temporarily result in messages not meant to be debugging ones to become hidden in non-debug builds. If others agree, I'd try to make one pass through the tree to try to identify such,
Thanks, that would be useful I think. Will you cover arch/arm too?
Quoted 1 line
but I'd like to ask others to also keep an eye on that aspect.
I'll certainly try.
Ian.
Quoted 9 lines
Quoted 1 line
Quoted 1 line · On 18.02.15 at 11:58, <[email protected]> wrote:
Quoted 5 lines · Jan Beulich
Quite likely the (mis-)use of these
two functions may then temporarily result in messages not meant to be debugging ones to become hidden in non-debug builds. If others agree, I'd try to make one pass through the tree to try to identify such,Thanks, that would be useful I think. Will you cover
arch/armtoo?
I did the patch and the auditing pass already, and I skipped - as you kind of expected - arch/arm. Since we're not under pressure and everyone should be doing debug builds right now anyway, I don't think applying the to-be-posted patch without ARM adjustments will do much harm; let me know if you think otherwise.
Jan
Quoted 8 lines · Jan Beulich
Quoted 8 lines
Quoted 1 line
Quoted 1 line · On 18.02.15 at 11:58, <[email protected]> wrote:
Quoted 5 lines · Jan Beulich
Quite likely the (mis-)use of these
two functions may then temporarily result in messages not meant to be debugging ones to become hidden in non-debug builds. If others agree, I'd try to make one pass through the tree to try to identify such,
Quoted 7 lines
Quoted 1 line
Thanks, that would be useful I think. Will you cover
arch/armtoo?I did the patch and the auditing pass already, and I skipped - as you kind of expected -
arch/arm. Since we're not under pressure and everyone should be doing debug builds right now anyway, I don't think applying the to-be-posted patch without ARM adjustments will do much harm; let me know if you think otherwise.
No problem, please go ahead and I'll try and find a moment to audit the ARM ones separately.
Ian.