3cacb3cb76
Change-Id: I8008837c9fb28f65b5b0e89e3482318e233e9381
17 lines
511 B
Plaintext
Executable File
17 lines
511 B
Plaintext
Executable File
#!/usr/bin/stap
|
|
# this script is tested locally only, because community CI has not been set up now
|
|
|
|
global count = 0;
|
|
global old_count = 0;
|
|
probe python.function.entry {
|
|
# line number here should not be necessary, please see https://bugs.launchpad.net/scalpels/+bug/1512687
|
|
if ((funcname == "lock") && isinstr(filename, "oslo_concurrency/lockutils.py") && (lineno == 163)) {
|
|
count = count + 1;
|
|
}
|
|
}
|
|
probe timer.ms(1000) {
|
|
new_count = count - old_count;
|
|
printf("%d\n", new_count);
|
|
old_count = count;
|
|
}
|