AndreiLux / Perseus-UNIVERSAL5410

This is a clean kernel glued together upon Samsung's last public branch of android-exynos-3.4 with sources provided by the OSRC releases. The OSRC release has been stripped clean of all non-i9500 related code and sourced, as much as possible through the original patches.
https://github.com/AndreiLux/Perseus-UNIVERSAL5410/wiki
Other
30 stars 19 forks source link

Quick toggle Android logger #26

Closed sorgelig closed 11 years ago

sorgelig commented 11 years ago

I found this feature useful. Especially for those who don't need debugging. And it's easy to add.

It's from Adam kernel: https://github.com/wanam/Adam-Kernel-GS4/commit/a318deaee43f47c6b048f01d55d91ed007facce0 https://github.com/wanam/Adam-Kernel-GS4/commit/f5ac31870bc38d640e9f50f9521a41c85ac49e41

AndreiLux commented 11 years ago

What's the reason for this?

(Btw just use labels instead of [tags])

AndreiLux commented 11 years ago

Well whatever, I'm still not a huge believer of the overhead that logging may cause.

Here's a proper version of the same functionality without the idiotic coding style and which also is faster by avoiding file operation blocking at the IO level.

logger: Add an enable toggle for entry storage https://github.com/AndreiLux/Perseus-UNIVERSAL5410/commit/7c1d084c6ba3cf6b0710527cdba550e3af8c29e5

Enable/disable via /sys/module/logger/parameters/enabled