-
Notifications
You must be signed in to change notification settings - Fork 0
/
fake.c
72 lines (60 loc) · 1.48 KB
/
fake.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/* dummy stub functions to avoid warnings on unused glibc functions */
#include <stdio.h>
#include <sys/types.h>
#include <pwd.h>
struct passwd *getpwnam(const char *name) {
(void) name;
return NULL;
}
struct passwd *getpwuid(uid_t uid) {
(void) uid;
return NULL;
}
int getpwnam_r(const char *name, struct passwd *pwd,
char *buf, size_t buflen, struct passwd **result) {
(void) name;
(void) pwd;
(void) buf;
(void) buflen;
(void) result;
return -1;
}
int getpwuid_r(uid_t uid, struct passwd *pwd,
char *buf, size_t buflen, struct passwd **result) {
(void) uid;
(void) pwd;
(void) buf;
(void) buflen;
(void) result;
return -1;
}
#include <stdint.h>
#include <stdarg.h>
typedef int SysprofClock;
typedef int64_t SysprofTimeStamp;
typedef int32_t SysprofTimeSysprofan;
SysprofClock sysprof_clock;
void sysprof_collector_mark_vprintf (int64_t time, int64_t duration,
const char *group, const char *mark, const char *message_format, va_list args) {
(void) time;
(void) duration;
(void) group;
(void) mark;
(void) message_format;
(void) args;
}
unsigned int sysprof_collector_request_counters (unsigned int n_counters) {
(void) n_counters;
return 0;
}
void sysprof_collector_define_counters (void *counters,
unsigned int n_counters) {
(void) counters;
(void) n_counters;
}
void sysprof_collector_set_counters (const unsigned int *counters_ids,
const void *values, unsigned int n_counters) {
(void) counters_ids;
(void) values;
(void) n_counters;
}