b26fa1a2fbcfee7d03b0c8fd15ec3aa64ae70b9f |
|
10-Feb-2016 |
Daniel Mack <daniel@zonque.org> |
tree-wide: remove Emacs lines from all files
This should be handled fine now by .dir-locals.el, so need to carry that
stuff in every file. |
d054f0a4d451120c26494263fc4dc175bfd405b1 |
|
12-Jan-2016 |
Daniel Mack <daniel@zonque.org> |
tree-wide: use xsprintf() where applicable
Also add a coccinelle receipt to help with such transitions. |
cf0fbc49e67b55f8d346fc94de28c90113505297 |
|
16-Nov-2015 |
Thomas Hindoe Paaboel Andersen <phomes@gmail.com> |
tree-wide: sort includes
Sort the includes accoding to the new coding style. |
b5efdb8af40ea759a1ea584c1bc44ecc81dd00ce |
|
27-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util-lib: split out allocation calls into alloc-util.[ch] |
3ffd4af22052963e7a29431721ee204e634bea75 |
|
25-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util-lib: split out fd-related operations into fd-util.[ch]
There are more than enough to deserve their own .c file, hence move them
over. |
f2d28e80bc6260c90396e9fc798d559775dbde23 |
|
30-Sep-2015 |
Aaro Koskinen <aaro.koskinen@nokia.com> |
bootchart: use get_proc_field and PROC_CPUINFO_MODEL
Use get_proc_field and PROC_CPUINFO_MODEL to get the CPU type. Also don't
fail if it missing, instead restore the old behaviour and print "Unknown".
Fixes the following error seen with v225 on powerpc:
Unable to read module name from cpuinfo.
Error generating svg file: No such file or directory |
57255510c95ca3369d241502f26d7bbd8fac30a6 |
|
09-Sep-2015 |
Lennart Poettering <lennart@poettering.net> |
tree-wide: replace while(1) by for(;;) everywhere
Another Coccinelle script. |
ece174c5439021e32ebcc858842de9586072c006 |
|
09-Sep-2015 |
Lennart Poettering <lennart@poettering.net> |
tree-wide: drop {} from one-line if blocks
Patch via coccinelle. |
4e5356169ac2ef7f22e5a101d86009f706b0ff7b |
|
01-Jul-2015 |
Dimitri John Ledkov <dimitri.j.ledkov@intel.com> |
bootchart: do not report warning when disk is missing model.
In VMs / virtio drives there is no model. Also don't print "Disk:
(null)" in output if no model is available. |
ae87a4a9291e7277b9fe08c97345166118f98623 |
|
28-Jun-2015 |
Gianpaolo Macario <gianpaolo_macario@mentor.com> |
bootchart: reset list_sample_data head before generating SVG
Until commit 1f2ecb0 ("bootchart: kill a bunch of global variables")
variable "head" was declared global and this action was performed by svg_header.
Now that "head" is local and passed to each function called by svg_do(...)
move the code at the beginning of svg_do(...) to restore the correct behaviour. |
75034e5836980feda04c582b5787c6bf9960c2e9 |
|
23-Jun-2015 |
Dimitri John Ledkov <dimitri.j.ledkov@intel.com> |
bootchart: fix per-cpu scales.
Closes systemd/systemd#330 |
5d236c1f420b7a717b8f40415c0e0ae7d52f3aba |
|
24-Apr-2015 |
Daniel Mack <daniel@zonque.org> |
bootchart: kill newline characters from log_error_errno() calls |
af672f03eccd2df655edb585af25f4b8f3e153ac |
|
03-Apr-2015 |
Daniel Mack <daniel@zonque.org> |
bootchart: assorted coding style fixes
* kill unnecessary {}
* add newlines where appropriate
* remove dead code
* reorder variable declarations
* fix more return code logic
* pass O_CLOEXEC to all open*() calles
* use safe_close() where possible |
1f2ecb0393bf071fcd476300e0b3f94726b01b15 |
|
03-Apr-2015 |
Daniel Mack <daniel@zonque.org> |
bootchart: kill a bunch of global variables
This code is in a confusingly bad shape. Kill a bunch of global variables
and pass needed variables around in function calls. |
f91781329c6d8a760e3c1b88b66b0e2137c2e5ab |
|
03-Apr-2015 |
Daniel Mack <daniel@zonque.org> |
bootchart: clean up sysfd and proc handling
Retrieve the handle to procfs in main(), and pass it functions
that need it. Kill the global variables.
Also, refactor lots of code in svg_title(). There's no need to access any
global variables from there either, and we really should return proper
errors from there as well. |
039958632036808f9baa207e72b9827fa97b7a10 |
|
03-Apr-2015 |
Daniel Mack <daniel@zonque.org> |
bootchart: switch to log_* helpers
Let the helper functions take care of the string message output. |
58ec01b35c046f5f167763343514c20170bfd2eb |
|
30-Mar-2015 |
Alexander Sverdlin <alexander.sverdlin@gmail.com> |
systemd-bootchart: Prevent leaking file descriptors in open-fdopen combination
Correctly handle the potential failure of fdopen() (because of OOM, for instance)
after potentially successful open(). Prevent leaking open fd in such case. |
c1682f17a0c966988e865c649e565dae41abf32d |
|
25-Feb-2015 |
Aaro Koskinen <aaro.koskinen@nokia.com> |
bootchart: svg: fix checking of list end
If we have less samples than expected, systemd-bootchart will crash. |
2eec67acbb00593e414549a7e5b35eb7dd776b1b |
|
23-Feb-2015 |
Thomas Hindoe Paaboel Andersen <phomes@gmail.com> |
remove unused includes
This patch removes includes that are not used. The removals were found with
include-what-you-use which checks if any of the symbols from a header is
in use. |
749806b389f53f7dd43a2cae1589e63dddf51990 |
|
14-Feb-2015 |
WaLyong Cho <walyong.cho@samsung.com> |
bootchart: display each CPU utilization/wait |
3f18c60b2e09d1191ffede3aeabd967b57a1f918 |
|
04-Dec-2014 |
WaLyong Cho <walyong.cho@samsung.com> |
bootchart: escape non printable process name |
e931d3f4241231e4102eda06adaf7cbfd68c6a5d |
|
28-Sep-2014 |
Thomas Hindoe Paaboel Andersen <phomes@gmail.com> |
bootchart: check return of strftime
Found by coverity. Fixes: CID#996314 and #996312 |
a2715692e22647428cceba3d4c300a85ddd4fadf |
|
11-Aug-2014 |
Lennart Poettering <lennart@poettering.net> |
bootchart: use the bool type where appropriate |
8271bd16ce9327834d8580e55bb5e4e0896fd98a |
|
19-Jun-2014 |
Thomas Hindoe Paaboel Andersen <phomes@gmail.com> |
bootchart: add assert
since 376cd3b89c62f580a6f576cecfbbb28d3944118f LIST_FIND_TAIL accepts
an empty list. That removed an assert in LIST_FIND_TAIL and we now
theoretically risk a null pointer deref. This adds the assert directly
to protect against that. |
a7997073ac07add6cb30dcd9491c0179b2d6ad52 |
|
17-Jun-2014 |
Frederic Crozat <fcrozat@suse.com> |
bootchart: set white background
In programs like eog and gimp the transparant background did not
look very good.
Similar fix from the one done in systemd-analyze (418e3750) |
49e5b2a93339869703d581a06f8d903f8371ab60 |
|
25-Apr-2014 |
WaLyong Cho <walyong.cho@samsung.com> |
bootchart: add control group option |
29804cc1e0f37ee34301530fd7f1eb8550be464e |
|
31-Jan-2014 |
Greg KH <gregkh@linuxfoundation.org> |
use memzero(foo, length); for all memset(foo, 0, length); calls
In trying to track down a stupid linker bug, I noticed a bunch of
memset() calls that should be using memzero() to make it more "obvious"
that the options are correct (i.e. 0 is not the length, but the data to
set). So fix up all current calls to memset(foo, 0, length) to
memzero(foo, length). |
4987623d011c534a22a490b17a8e0ec81d1ac30c |
|
10-Dec-2013 |
Dan McGee <dan@archlinux.org> |
Bring bootchart code in line with CODING_STYLE
Use double and not float, as there is little to no benefit. |
272bf69e98f93d859a2321b08ee18c44a9c75a06 |
|
08-Dec-2013 |
Thomas Hindoe Paaboel Andersen <phomes@gmail.com> |
bootchart: remove dead assignment |
f168c27313e4d7b0aabee037dc9c78a5799f0597 |
|
03-Dec-2013 |
Thomas Hindoe Paaboel Andersen <phomes@gmail.com> |
trivial coding style clean ups
- Add space between if/for and the opening parentheses
- Place the opening brace on same line as the function (not for udev)
From the CODING_STYLE
Try to use this:
void foo() {
}
instead of this:
void foo()
{
} |
71fda00f320379f5cbee8e118848de98caaa229d |
|
14-Oct-2013 |
Lennart Poettering <lennart@poettering.net> |
list: make our list macros a bit easier to use by not requring type spec on each invocation
We can determine the list entry type via the typeof() gcc construct, and
so we should to make the macros much shorter to use. |
872c8faaf2009422a91d227ae0b5c6f04c9d2c69 |
|
13-Oct-2013 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
Fix write-only use of a few variables
Since the invention of read-only memory, write-only memory has been
considered deprecated. Where appropriate, either make use of the
value, or avoid writing it, to make it clear that it is not used. |
3c527fd195ed9acddedb6dd6f50be6bffc94e9ae |
|
12-Jun-2013 |
Jason St. John <jstjohn@purdue.edu> |
bootchart: fix typos in copyright notices
"Corporation" was misspelled as "Coproration" |
8dfb6e718d621a5115bd3b8e7e826195dc6bfe14 |
|
02-May-2013 |
Nathaniel Chen <nathaniel.chen@intel.com> |
Dynamically allocate bootchart logs
Instead of storing bootchart sample data in arrays, this patch moves
storage to linked lists so that there is no more limit on samples.
This patch also fixes parsing of /proc/<pid>/smaps in kernels > 3.7. |
7fd1b19bc9e9f5574f2877936b8ac267c7706947 |
|
18-Apr-2013 |
Harald Hoyer <harald@redhat.com> |
move _cleanup_ attribute in front of the type
http://lists.freedesktop.org/archives/systemd-devel/2013-April/010510.html |
1c6330456c5ae76085c63d2a7cf3d722596e545a |
|
11-Apr-2013 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
Use initalization instead of explicit zeroing in more places |
9607d9470eec07df817e58f64d312ccb5ac4cfcc |
|
02-Apr-2013 |
Cristian Rodríguez <crrodriguez@opensuse.org> |
Always use our own MAX/MIN definitions
code in src/shared/macro.h only defined MAX/MIN in case
they were not defined previously. however the MAX/MIN
macros implemented in glibc are not of the "safe" kind but defined
as:
define MIN(a,b) (((a)<(b))?(a):(b))
define MAX(a,b) (((a)>(b))?(a):(b))
Avoid nasty side effects by using our own versions instead.
Also fix the warnings derived from this change.
[zj: - modify MAX3 macro to fix warning about _a shadowing _a,
- do bootchart/svg.c too,
- remove unused MIN3.] |
4dd1de72e8e7ece77e8831e77eea650de404af75 |
|
31-Mar-2013 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
Remove some dead code
Based on coverity report. |
40c2cce772ed74e7c6d302a6143ad818e9a2720d |
|
22-Mar-2013 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
bootchart: fix two unitialized memory frees
The new gcc isn't bad!
In file included from src/bootchart/svg.c:36:0:
src/bootchart/svg.c: In function 'svg_ps_bars':
./src/shared/util.h:524:13: warning: 'enc_name' may be used uninitialized in this function [-Wmaybe-uninitialized]
free(*(void**) p);
^
src/bootchart/svg.c:821:37: note: 'enc_name' was declared here
char _cleanup_free_*enc_name;
^
CC src/udev/mtd_probe/mtd_probe-probe_smartmedia.o
XSLT man/systemd.unit.5
In file included from src/bootchart/svg.c:36:0:
src/bootchart/svg.c: In function 'svg_pss_graph':
./src/shared/util.h:524:13: warning: 'enc_name' may be used uninitialized in this function [-Wmaybe-uninitialized]
free(*(void**) p);
^
src/bootchart/svg.c:395:37: note: 'enc_name' was declared here
char _cleanup_free_*enc_name;
^ |
6d031c0b6037ac7308d31562c09fb8ac714e82b4 |
|
11-Mar-2013 |
Lennart Poettering <lennart@poettering.net> |
bootchart: various superficial cleanups
Let's update bootchar to share the coding style a bit more with the rest
of the package.
- Some tabs/spaces fixes
- add #pragma to header
- split up header so that we have a 1:1 relation between .c and .h files
like everywhere else
- Prefix user command line arguments/configuration settings with "arg_".
- other coding style fixes |
1f3523baf7418adf3b2738b3917ef956a8414ab7 |
|
07-Mar-2013 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
Revert "bootchart: use _cleanup_close_"
This reverts commit 0ea9530d401827e299c6e04a433e69a7a2a89d80.
attribute(cleanup) can only be used inside functions (*of, sysfd
are leaked).
Cleanup functions are only called once when exiting scope (*f
is leaked twice). |
0ea9530d401827e299c6e04a433e69a7a2a89d80 |
|
07-Mar-2013 |
Nathaniel Chen <nathaniel.chen@intel.com> |
bootchart: use _cleanup_close_
use _cleanup_{close_,fclose_} to close streams and file descriptors |
b9a496c166c35f670b1f0fce8745bc5df5ea74ad |
|
07-Mar-2013 |
Harald Hoyer <harald@redhat.com> |
bootchart: rename global len to samples_len |
e90f9fa4d1cab6f73fc502fe9ef705c1bb2912a0 |
|
07-Mar-2013 |
Harald Hoyer <harald@redhat.com> |
bootchart: add parameter "-C" to expand process names to the full cmdline |
8846199d2006824debdc587df73826a7efa31d24 |
|
14-Feb-2013 |
Harald Hoyer <harald@redhat.com> |
bootchart: if "root=/dev" is not matched, don't try to read /sys |
e93450c6c053d7499971a2b1310e893978f67f74 |
|
14-Feb-2013 |
Harald Hoyer <harald@redhat.com> |
bootchart: parse /etc/os-release rather than system-release
Also parse it early, so that we can get it in the initramfs. |
b823b5e272d07d31c12625a268e8d563289a4db5 |
|
14-Feb-2013 |
Harald Hoyer <harald@redhat.com> |
bootchart: more fixes for bootchart in the initramfs |
895aeb27795c00f365ce3b30b1dca549b4f5468e |
|
14-Feb-2013 |
William Giokas <1007380@gmail.com> |
man: bootchart: change /var/log to /run/log
As of [1], bootchart stores files in /run/log, not /var/log, by default.
[1] f2f85884caac671da84256acb44148df9a4dca70 |
6bb25a058227d89fbbeba6c12873e6f83da5cf94 |
|
13-Feb-2013 |
William Giokas <1007380@gmail.com> |
bootchart: Fix typos and some English
bootchart.conf: direct users to `bootchart.conf(5)`, not a nonexistent
man page.
svg.c: Fix some English in the svg comment header.
* Chrome/Chromium => Chrome, Chromium
* firefox => Firefox
* much more slow => more slowly |
cd3bccaaf7b3c0e000cfd1bac638a52cb4f510c3 |
|
13-Feb-2013 |
Auke Kok <auke-jan.h.kok@intel.com> |
systemd-bootchart: relicense to LGPLv2.1+
When we merged systemd-bootchart we omitted relicensing this
to LGPL. Now that code is being used for other purposes we
need to make sure the code is shareable within systemd
without further problems.
The original committers and contributors of bootchart before it
was merged all have agreed with the relicensing. |
e985665d2d226cb42b52bfcad6fd5b1586ad57d7 |
|
25-Jan-2013 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
Add _cleanup_pclose_ and fix mismatching pipe close opened by popen()
Based-on-patch-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
cppcheck reported:
[src/bootchart/svg.c:791]: (error) Mismatching allocation and deallocation: f |
28989b63f5e3a959557000f21f3891af08be40f7 |
|
10-Jan-2013 |
Thomas Hindoe Paaboel Andersen <phomes@gmail.com> |
bootchart: tabs to spaces |
83fdc450aa8f79941bec84488ffd5bf8eadab18e |
|
07-Jan-2013 |
Auke Kok <auke-jan.h.kok@intel.com> |
bootchart: merge bootchart
Bootchart is renamed to 'systemd-bootchart' and installed as
/usr/lib/systemd/systemd-bootchart. The configuration file
will reside in /etc/systemd/bootchart.conf. |