]>
sourceware.org Git - systemtap.git/blob - coveragedb.h
2 // Copyright (C) 2007 Red Hat Inc.
4 // This file is part of systemtap, and is free software. You can
5 // redistribute it and/or modify it under the terms of the GNU General
6 // Public License (GPL); either version 2, or (at your option) any
20 tuples: file, line number, column, type of object, name
21 values: number of times object "pulled_in", number of times "removed",
24 if (compiled == 0) object never compiled
25 if (compiled > 0) object compiled
27 The following are not currently implemented.
28 if (executed == 0) never executed
29 if (executed > 0) executed
32 Want to make sure that the data base accurately reflects testing.
33 1) atomic updates, either commit all or none of information
34 2) only update coverage db compile info, if compile successful
35 3) only update coverage db execute info, if instrumentation run suscessfully
38 Would like to have something that looks for interesting features in db:
40 list which things are not compile
41 list which things are not exectuted
43 ratio of compiled/total (overall, by file, by line)
44 ratio of executed/total (overall, by file, by line)
55 class coverage_element
{
67 line(0), col(0), compiled(0), executed(0) {}
69 coverage_element(source_loc
&place
):
70 file(place
.file
->name
), line(place
.line
), col(place
.column
),
71 compiled(0), executed(0) {}
76 void print_coverage_info(systemtap_session
&s
);
77 void update_coverage_db(systemtap_session
&s
);
81 /* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */
This page took 0.042788 seconds and 6 git commands to generate.