Add table columns for thread id, comm start time and exec flag.
Showing the changes to tools/perf/scripts/python (1 of 1 file). Show all
Unified · Split
| @@ -177,7 +177,10 @@ do_query(query, 'CREATE TABLE threads (' · 176 unmodified lines | ||
| 177 | 177 | 'tid integer)') |
| 178 | 178 | do_query(query, 'CREATE TABLE comms (' |
| 179 | 179 | 'id integer NOT NULL PRIMARY KEY,' |
| 180 | − 'comm varchar(16))') | |
| 180 | + 'comm varchar(16),' | |
| 181 | + 'c_thread_id bigint,' | |
| 182 | + 'c_time bigint,' | |
| 183 | + 'exec_flag boolean)') | |
| 181 | 184 | do_query(query, 'CREATE TABLE comm_threads (' |
| 182 | 185 | 'id integer NOT NULL PRIMARY KEY,' |
| 183 | 186 | 'comm_id bigint,' |
| @@ -536,7 +539,7 @@ machine_query.prepare("INSERT INTO machines VALUES (?, ?, ?)") · 352 unmodified lines | ||
| 536 | 539 | thread_query = QSqlQuery(db) |
| 537 | 540 | thread_query.prepare("INSERT INTO threads VALUES (?, ?, ?, ?, ?)") |
| 538 | 541 | comm_query = QSqlQuery(db) |
| 539 | −comm_query.prepare("INSERT INTO comms VALUES (?, ?)") | |
| 542 | +comm_query.prepare("INSERT INTO comms VALUES (?, ?, ?, ?, ?)") | |
| 540 | 543 | comm_thread_query = QSqlQuery(db) |
| 541 | 544 | comm_thread_query.prepare("INSERT INTO comm_threads VALUES (?, ?, ?)") |
| 542 | 545 | dso_query = QSqlQuery(db) |
| @@ -576,7 +579,7 @@ def trace_begin(): · 33 unmodified lines | ||
| 576 | 579 | evsel_table(0, "unknown") |
| 577 | 580 | machine_table(0, 0, "unknown") |
| 578 | 581 | thread_table(0, 0, 0, -1, -1) |
| 579 | − comm_table(0, "unknown") | |
| 582 | + comm_table(0, "unknown", 0, 0, 0) | |
| 580 | 583 | dso_table(0, 0, "unknown", "unknown", "") |
| 581 | 584 | symbol_table(0, 0, 0, 0, 0, "unknown") |
| 582 | 585 | sample_table(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) |
| @@ -642,7 +645,7 @@ def thread_table(*x): · 59 unmodified lines | ||
| 642 | 645 | bind_exec(thread_query, 5, x) |
| 643 | 646 | |
| 644 | 647 | def comm_table(*x): |
| 645 | − bind_exec(comm_query, 2, x) | |
| 648 | + bind_exec(comm_query, 5, x) | |
| 646 | 649 | |
| 647 | 650 | def comm_thread_table(*x): |
| 648 | 651 | bind_exec(comm_thread_query, 3, x) |