Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1492000
| From | Sean Paul <seanpaul@chromium.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 2/2] drm: Simplify drm_printk to reduce object size quite a bit |
| Date | 2016-09-27 18:00 +0200 |
| Message-ID | <sm2Xv-2S0-1@gated-at.bofh.it> (permalink) |
| References | <sltGp-6hS-3@gated-at.bofh.it> <sltGp-6hS-13@gated-at.bofh.it> <slzCa-1yg-23@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, Sep 26, 2016 at 4:36 AM, Chris Wilson <chris@chris-wilson.co.uk> wrote: > On Sun, Sep 25, 2016 at 07:18:34PM -0700, Joe Perches wrote: >> Remove function name and special " *ERROR*" from argument list >> >> $ size drivers/gpu/drm/built-in.o* (x86-32 defconfig, most drm selected) >> text data bss dec hex filename >> 5635366 182579 14328 5832273 58fe51 drivers/gpu/drm/built-in.o.new >> 5779552 182579 14328 5976459 5b318b drivers/gpu/drm/built-in.o.old >> >> Using "%ps", __builtin_return_address(0) is the same as "%s", __func__ >> except for static inlines, but it's more or less the same output. > > And for static inlines we more often want to know which of the many > callers triggered the error. We would have to play it by ear to see > which error messages need to be improved in cases where it not obvious > without the context of the static inline function name. > > Lgtm, reducing the call size for DRM_DEBUG is a definite improvement. > Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> > Agreed on the static inlines, hopefully we won't break anyone's log grep workflow. I will push this to -misc in a couple days if no one objects. Reviewed-by: Sean Paul <seanpaul@chromium.org> >> >> Miscellanea: >> >> o Convert args... to ##__VA_ARGS__ >> o The equivalent DRM_DEV_<FOO> macros are rarely used and not >> worth conversion > > Today. I would rather see us to migrate to DRM_DEV (i.e. dev_printk) so > that the drm subsystem is consistent with the rest of the kernel and > providing the necessary information for syslog filtering. > -Chris > > -- > Chris Wilson, Intel Open Source Technology Centre > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/2] drm: Neaten and reduce object size Joe Perches <joe@perches.com> - 2016-09-26 04:20 +0200
[PATCH 2/2] drm: Simplify drm_printk to reduce object size quite a bit Joe Perches <joe@perches.com> - 2016-09-26 04:20 +0200
Re: [PATCH 2/2] drm: Simplify drm_printk to reduce object size quite a bit Chris Wilson <chris@chris-wilson.co.uk> - 2016-09-26 10:40 +0200
Re: [PATCH 2/2] drm: Simplify drm_printk to reduce object size quite a bit Sean Paul <seanpaul@chromium.org> - 2016-09-27 18:00 +0200
Re: [PATCH 2/2] drm: Simplify drm_printk to reduce object size quite a bit Sean Paul <seanpaul@chromium.org> - 2016-09-29 15:40 +0200
[PATCH 1/2] drm: Simplify logging macros, convert DRM_NOTE to DRM_NOTICE Joe Perches <joe@perches.com> - 2016-09-26 04:20 +0200
Re: [PATCH 1/2] drm: Simplify logging macros, convert DRM_NOTE to DRM_NOTICE Sean Paul <seanpaul@chromium.org> - 2016-09-27 18:00 +0200
Re: [PATCH 1/2] drm: Simplify logging macros, convert DRM_NOTE to DRM_NOTICE Joe Perches <joe@perches.com> - 2016-09-27 18:10 +0200
Re: [PATCH 1/2] drm: Simplify logging macros, convert DRM_NOTE to DRM_NOTICE Emil Velikov <emil.l.velikov@gmail.com> - 2016-09-27 18:40 +0200
Re: [PATCH 1/2] drm: Simplify logging macros, convert DRM_NOTE to DRM_NOTICE Joe Perches <joe@perches.com> - 2016-09-27 18:50 +0200
Re: [PATCH 1/2] drm: Simplify logging macros, convert DRM_NOTE to DRM_NOTICE Emil Velikov <emil.l.velikov@gmail.com> - 2016-09-27 19:00 +0200
Re: [PATCH 1/2] drm: Simplify logging macros, convert DRM_NOTE to DRM_NOTICE Sean Paul <seanpaul@chromium.org> - 2016-09-27 19:30 +0200
Re: [PATCH 1/2] drm: Simplify logging macros, convert DRM_NOTE to DRM_NOTICE Joe Perches <joe@perches.com> - 2016-09-27 19:00 +0200
csiph-web