Skip to content

Commit deb0133

Browse files
Eddie Renfacebook-github-bot
Eddie Ren
authored andcommitted
Add future_iter_resume USDT for PyLatency
Summary: This USDT is needed for PyLatency to work, copy paste from D42627663 Reviewed By: itamaro Differential Revision: D58026462 fbshipit-source-id: d8de7c9664bf7224386745854b8496798b44aabd
1 parent 54bbac2 commit deb0133

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

Modules/_asynciomodule.c

+9
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
#include "structmember.h" // PyMemberDef
1111
#include <stddef.h> // offsetof()
1212

13+
/** USDT/STAP_PROBE import */
14+
#ifdef HAVE_SYS_SDT_H
15+
#include "sys/sdt.h"
16+
#endif
1317

1418
/*[clinic input]
1519
module _asyncio
@@ -1695,6 +1699,11 @@ FutureIter_am_send(futureiterobject *it,
16951699
it->future = NULL;
16961700
res = _asyncio_Future_result_impl(fut);
16971701
if (res != NULL) {
1702+
1703+
#ifdef HAVE_SYS_SDT_H
1704+
STAP_PROBE(python, future_iter_resume);
1705+
#endif
1706+
16981707
Py_DECREF(fut);
16991708
*result = res;
17001709
return PYGEN_RETURN;

configure

-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)