# This systamtap script is used by the test "dynamic_tracing.test" for dynamic # tracing. This script is executed in background by "dynamic_tracing.test" and # SQL queries are executed concurrently. When any probe used in this script are # hit then counter is incremented. After hitting all the 8(exp_probe_hits) # probes, summary containing probes enabled and their hit state is printed. # # For the dynamic tracing of MySQL code using systemtap on Linux, the dtrace # probes defined in the code are converted to systemtap marks by the dtrace # tool. This dtrace tool is not used for dynamic tracing like real dtrace tool # supplied with Sun OS, Mac, FreeBSD and Oracle Linux. # global query_parse_start global query_parse_done global select_start global select_done global net_read_start global net_read_done global handler_rdlock_start global handler_rdlock_done global tot_probe_hits global exp_probe_hits probe begin { query_parse_start= 0 query_parse_done= 0 select_start= 0 select_done= 0 net_read_start= 0 net_read_done= 0 handler_rdlock_start= 0 handler_rdlock_done= 0 tot_probe_hits= 0 exp_probe_hits= 8 printf("\n Dynamic tracing ...... started.\n") } probe process(@1).mark("query__parse__start") { if (query_parse_start == 0) { query_parse_start++ tot_probe_hits++ } if (tot_probe_hits >= exp_probe_hits) { print_summary_and_exit() } } probe process(@1).mark("query__parse__done") { if (query_parse_done == 0) { query_parse_done++ tot_probe_hits++ } if (tot_probe_hits >= exp_probe_hits) { print_summary_and_exit() } } probe process(@1).mark("select__start") { if (select_start == 0) { select_start++ tot_probe_hits++ } if (tot_probe_hits >= exp_probe_hits) { print_summary_and_exit() } } probe process(@1).mark("select__done") { if (select_done == 0) { select_done++ tot_probe_hits++ } if (tot_probe_hits >= exp_probe_hits) { print_summary_and_exit() } } probe process(@1).mark("net__read__start") { if (net_read_start == 0) { net_read_start++ tot_probe_hits++ } if (tot_probe_hits >= exp_probe_hits) { print_summary_and_exit() } } probe process(@1).mark("net__read__done") { if (net_read_done == 0) { net_read_done++ tot_probe_hits++ } if (tot_probe_hits >= exp_probe_hits) { print_summary_and_exit() } } probe process(@1).mark("handler__rdlock__start") { if (handler_rdlock_start == 0) { handler_rdlock_start++ tot_probe_hits++ } if (tot_probe_hits >= exp_probe_hits) { print_summary_and_exit() } } probe process(@1).mark("handler__rdlock__done") { if (handler_rdlock_done == 0) { handler_rdlock_done++ tot_probe_hits++ } if (tot_probe_hits >= exp_probe_hits) { print_summary_and_exit() } } function print_summary_and_exit() { printf("\n query-parse-start : %d", query_parse_start) printf("\n query-parse-done : %d", query_parse_done) printf("\n select-start : %d", select_start) printf("\n select-done : %d", select_done) printf("\n net-read-start : %d", net_read_start) printf("\n net-read-done : %d", net_read_done) printf("\n handler_rdlock_start : %d", handler_rdlock_start) printf("\n handler_rdlock_done : %d", handler_rdlock_done) printf("\n") printf("\n Expected probe hits : %d", exp_probe_hits) printf("\n Actual probe hits : %d\n", tot_probe_hits) printf("\n Dynamic tracing ...... completed.\n\n") exit() }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
crldir | Folder | 0755 |
|
|
funcs_1 | Folder | 0755 |
|
|
parts | Folder | 0755 |
|
|
.mylogin.cnf | File | 65 B | 0644 |
|
14897.frm | File | 8.41 KB | 0644 |
|
55_temporal.MYD | File | 80 B | 0644 |
|
55_temporal.MYI | File | 1 KB | 0644 |
|
55_temporal.frm | File | 8.45 KB | 0644 |
|
Index.xml | File | 170.35 KB | 0644 |
|
Moscow_leap | File | 2.61 KB | 0644 |
|
bad_gis_data.dat | File | 4 B | 0644 |
|
binlog_savepoint.000001 | File | 1014 B | 0644 |
|
binlog_transaction.000001 | File | 1.63 KB | 0644 |
|
binlog_transaction_with_GTID.000001 | File | 789 B | 0644 |
|
binlog_transaction_with_anonymous_GTID.000001 | File | 638 B | 0644 |
|
bug15328.cnf | File | 44 B | 0644 |
|
bug16171518_1.dat | File | 1.1 KB | 0644 |
|
bug16171518_2.dat | File | 169 B | 0644 |
|
bug16266.000001 | File | 532 B | 0644 |
|
bug17532932.MYD | File | 0 B | 0644 |
|
bug17532932.MYI | File | 1 KB | 0644 |
|
bug17532932.frm | File | 8.4 KB | 0644 |
|
bug19371.MYD | File | 40 B | 0644 |
|
bug19371.MYI | File | 1 KB | 0644 |
|
bug19371.frm | File | 8.38 KB | 0644 |
|
bug30435_10k_items.txt | File | 47.75 KB | 0644 |
|
bug30435_5k.txt | File | 23.33 KB | 0644 |
|
bug33029-slave-relay-bin.000001 | File | 3.84 KB | 0644 |
|
bug35469.dat | File | 45 B | 0644 |
|
bug36055.MYD | File | 10 B | 0644 |
|
bug36055.MYI | File | 1 KB | 0644 |
|
bug36055.frm | File | 8.36 KB | 0644 |
|
bug37631.MYD | File | 0 B | 0644 |
|
bug37631.MYI | File | 1 KB | 0644 |
|
bug37631.frm | File | 8.39 KB | 0644 |
|
bug40482-bin.000001 | File | 172 B | 0644 |
|
bug46565.ARZ | File | 8.47 KB | 0644 |
|
bug46565.frm | File | 8.35 KB | 0644 |
|
bug47012.ARM | File | 19 B | 0644 |
|
bug47012.ARZ | File | 22 B | 0644 |
|
bug47012.frm | File | 8.39 KB | 0644 |
|
bug47205.frm | File | 8.35 KB | 0644 |
|
bug48265.frm | File | 8.35 KB | 0644 |
|
bug48449.frm | File | 263 B | 0644 |
|
bug48633.ARM | File | 19 B | 0644 |
|
bug48633.ARZ | File | 157 B | 0644 |
|
bug48633.frm | File | 8.45 KB | 0644 |
|
bug49823.CSM | File | 35 B | 0644 |
|
bug49823.CSV | File | 73 B | 0644 |
|
bug49823.frm | File | 8.57 KB | 0644 |
|
ca-cert-verify-san.pem | File | 1.28 KB | 0644 |
|
ca-cert-verify.pem | File | 1.2 KB | 0644 |
|
ca-sha512.pem | File | 1.14 KB | 0644 |
|
cacert.pem | File | 4.28 KB | 0644 |
|
charset_utf8.txt | File | 7.81 KB | 0644 |
|
checkDBI_DBD-mysql.pl | File | 4.03 KB | 0755 |
|
client-cert-verify-san.pem | File | 1.16 KB | 0644 |
|
client-cert.pem | File | 4.42 KB | 0644 |
|
client-key-verify-san.pem | File | 1.64 KB | 0644 |
|
client-key.pem | File | 1.64 KB | 0644 |
|
cluster_7022_table.MYD | File | 0 B | 0644 |
|
cluster_7022_table.MYI | File | 1 KB | 0644 |
|
cluster_7022_table.frm | File | 8.59 KB | 0644 |
|
corrupt-relay-bin.000624 | File | 89.28 KB | 0644 |
|
corrupt_t1#P#p1.MYI | File | 1 KB | 0644 |
|
corrupt_t1.MYI | File | 1 KB | 0644 |
|
crl-ca-cert.pem | File | 4.39 KB | 0644 |
|
crl-certificate-readme.txt | File | 4.21 KB | 0644 |
|
crl-client-cert.pem | File | 3.92 KB | 0644 |
|
crl-client-key.pem | File | 1.64 KB | 0644 |
|
crl-client-revoked-cert.pem | File | 3.94 KB | 0644 |
|
crl-client-revoked-key.pem | File | 1.64 KB | 0644 |
|
crl-client-revoked.crl | File | 2.11 KB | 0644 |
|
crl-server-cert.pem | File | 3.92 KB | 0644 |
|
crl-server-key.pem | File | 1.64 KB | 0644 |
|
des_key_file | File | 55 B | 0644 |
|
dtrace.d | File | 2.55 KB | 0644 |
|
init_file.dat | File | 1.28 KB | 0644 |
|
intersect-bug50389.tsv | File | 20.98 KB | 0644 |
|
latin1.xml | File | 5.76 KB | 0644 |
|
loaddata1.dat | File | 56 B | 0644 |
|
loaddata2.dat | File | 95 B | 0644 |
|
loaddata3.dat | File | 210 B | 0644 |
|
loaddata4.dat | File | 85 B | 0644 |
|
loaddata5.dat | File | 69 B | 0644 |
|
loaddata6.dat | File | 2 B | 0644 |
|
loaddata_dq.dat | File | 46 B | 0644 |
|
loaddata_pair.dat | File | 20 B | 0644 |
|
loaddata_utf8.dat | File | 30 B | 0644 |
|
loadxml.dat | File | 1.44 KB | 0644 |
|
loadxml2.dat | File | 951 B | 0644 |
|
master-bin.000001 | File | 98 B | 0644 |
|
numbers.txt | File | 23 B | 0644 |
|
old-format-relay-log-win.info | File | 30 B | 0644 |
|
old-format-relay-log.info | File | 30 B | 0644 |
|
old_table-323.frm | File | 8.4 KB | 0644 |
|
onerow.xml | File | 339 B | 0644 |
|
rpl_bug28618.dat | File | 42 B | 0644 |
|
rpl_loaddata.dat | File | 12 B | 0644 |
|
rpl_loaddata2.dat | File | 140 B | 0644 |
|
rpl_mixed.dat | File | 30 B | 0644 |
|
rpl_timezone.dat | File | 30 B | 0644 |
|
rpl_timezone2.dat | File | 40 B | 0644 |
|
rsa_private_key.pem | File | 3.17 KB | 0644 |
|
rsa_public_key.pem | File | 800 B | 0644 |
|
server-cert-sha512.pem | File | 1.15 KB | 0644 |
|
server-cert-verify-fail.pem | File | 1.13 KB | 0644 |
|
server-cert-verify-pass.pem | File | 1.1 KB | 0644 |
|
server-cert-verify-san.pem | File | 1.38 KB | 0644 |
|
server-cert.pem | File | 4.42 KB | 0644 |
|
server-key-sha512.pem | File | 1.64 KB | 0644 |
|
server-key-verify-fail.pem | File | 1.64 KB | 0644 |
|
server-key-verify-pass.pem | File | 1.64 KB | 0644 |
|
server-key-verify-san.pem | File | 1.64 KB | 0644 |
|
server-key.pem | File | 1.64 KB | 0644 |
|
server8k-cert.pem | File | 12.4 KB | 0644 |
|
server8k-key.pem | File | 6.21 KB | 0644 |
|
slave-relay-bin_linux.index | File | 25 B | 0644 |
|
slave-relay-bin_win.index | File | 25 B | 0644 |
|
system_tap.stp | File | 3.47 KB | 0644 |
|
trunc_binlog.000001 | File | 174 B | 0644 |
|
untrusted-cacert.pem | File | 2.74 KB | 0644 |
|
vchar.frm | File | 8.41 KB | 0644 |
|
warnings_loaddata.dat | File | 211 B | 0644 |
|
wl6219_41.MYD | File | 120 B | 0644 |
|
wl6219_41.MYI | File | 1 KB | 0644 |
|
wl6219_41.frm | File | 8.47 KB | 0644 |
|
wl6219_55.MYD | File | 120 B | 0644 |
|
wl6219_55.MYI | File | 1 KB | 0644 |
|
wl6219_55.frm | File | 8.47 KB | 0644 |
|
wl6219_55_innodb.frm | File | 8.47 KB | 0644 |
|
words.dat | File | 581 B | 0644 |
|
words2.dat | File | 419 B | 0644 |
|