Skip to content

Commit ef8312d

Browse files
chore: bump instrument-hooks submodule to use int32_t as pid
1 parent e367234 commit ef8312d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/pytest_codspeed/instruments/hooks/build.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
# Manually copied from `instrument-hooks/includes/core.h` to avoid parsing issues
1212
ffibuilder.cdef("""
13-
typedef uint64_t *InstrumentHooks;
13+
typedef struct InstrumentHooks InstrumentHooks;
1414
1515
InstrumentHooks *instrument_hooks_init(void);
1616
void instrument_hooks_deinit(InstrumentHooks *);
@@ -28,7 +28,7 @@
2828
#define MARKER_TYPE_BENCHMARK_START 2
2929
#define MARKER_TYPE_BENCHMARK_END 3
3030
31-
uint8_t instrument_hooks_add_marker(InstrumentHooks *, uint32_t pid,
31+
uint8_t instrument_hooks_add_marker(InstrumentHooks *, int32_t pid,
3232
uint8_t marker_type, uint64_t timestamp);
3333
uint64_t instrument_hooks_current_timestamp(void);
3434
@@ -44,7 +44,7 @@
4444
const char *key,
4545
const char *const *values,
4646
uint32_t count);
47-
uint8_t instrument_hooks_write_environment(InstrumentHooks *, uint32_t pid);
47+
uint8_t instrument_hooks_write_environment(InstrumentHooks *, int32_t pid);
4848
""")
4949

5050
ffibuilder.set_source(

0 commit comments

Comments
 (0)