summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorJérémy Lefaure <jeremy.lefaure@lse.epita.fr>2017-10-01 22:30:49 +0300
committerMike Snitzer <snitzer@redhat.com>2017-11-10 23:44:52 +0300
commitfbc61291d7da41ec19f339311297f59213165227 (patch)
tree57d695fa21a87bcb9cb41fd80780d1065daa1b28 /tools/perf/scripts/python/export-to-postgresql.py
parent98d82f48f1983ceef5c8d2f6c87bfee2918790ee (diff)
downloadlinux-fbc61291d7da41ec19f339311297f59213165227.tar.xz
dm space map metadata: use ARRAY_SIZE
Using the ARRAY_SIZE macro improves the readability of the code. Found with Coccinelle with the following semantic patch: @r depends on (org || report)@ type T; T[] E; position p; @@ ( (sizeof(E)@p /sizeof(*E)) | (sizeof(E)@p /sizeof(E[...])) | (sizeof(E)@p /sizeof(T)) ) Signed-off-by: Jérémy Lefaure <jeremy.lefaure@lse.epita.fr> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions