Searched refs:NULL (Results 26 - 50 of 528) sorted by relevance

1234567891011>>

/gem5/ext/libelf/
H A Delf_getarsym.c39 symtab = NULL;
41 if (ar == NULL || ar->e_kind != ELF_K_AR)
43 else if ((symtab = ar->e_u.e_ar.e_symtab) != NULL)
H A Delf_getident.c38 if (e == NULL) {
43 if (e->e_cmd == ELF_C_WRITE && e->e_rawfile == NULL) {
64 return (NULL);
H A Dlibelf_phdr.c49 if (e == NULL) {
51 return (NULL);
56 (void *) e->e_u.e_elf.e_phdr.e_phdr64)) != NULL)
63 if ((ehdr = _libelf_ehdr(e, ec, 0)) == NULL)
64 return (NULL);
84 return (NULL);
91 if ((phdr = calloc(phnum, msz)) == NULL) {
93 return (NULL);
115 if (e == NULL) {
117 return (NULL);
[all...]
H A Delf_kind.c35 if (e == NULL)
H A Delf_shstrndx.c39 if (e == NULL || e->e_kind != ELF_K_ELF ||
45 if ((eh = _libelf_ehdr(e, ec, 0)) == NULL)
59 if (e == NULL || e->e_kind != ELF_K_ELF ||
61 ((eh = _libelf_ehdr(e, ec, 0)) == NULL)) {
H A Dgelf_phdr.c55 if (d == NULL || e == NULL ||
59 return (NULL);
63 if ((eh32 = _libelf_ehdr(e, ELFCLASS32, 0)) == NULL ||
64 ((ep32 = _libelf_getphdr(e, ELFCLASS32)) == NULL))
65 return (NULL);
69 return (NULL);
84 if ((eh64 = _libelf_ehdr(e, ELFCLASS64, 0)) == NULL ||
85 (ep64 = _libelf_getphdr(e, ELFCLASS64)) == NULL)
86 return (NULL);
[all...]
H A Dgelf_dyn.c44 if (d == NULL || ndx < 0 || dst == NULL ||
45 (scn = d->d_scn) == NULL ||
46 (e = scn->s_elf) == NULL) {
48 return (NULL);
61 return (NULL);
70 return (NULL);
100 if (d == NULL || ndx < 0 || ds == NULL ||
101 (scn = d->d_scn) == NULL ||
[all...]
H A Dgelf_rel.c45 if (d == NULL || ndx < 0 || dst == NULL ||
46 (scn = d->d_scn) == NULL ||
47 (e = scn->s_elf) == NULL) {
49 return (NULL);
62 return (NULL);
71 return (NULL);
101 if (d == NULL || ndx < 0 || dr == NULL ||
102 (scn = d->d_scn) == NULL ||
[all...]
H A Dgelf_rela.c45 if (d == NULL || ndx < 0 || dst == NULL ||
46 (scn = d->d_scn) == NULL ||
47 (e = scn->s_elf) == NULL) {
49 return (NULL);
62 return (NULL);
71 return (NULL);
102 if (d == NULL || ndx < 0 || dr == NULL ||
103 (scn = d->d_scn) == NULL ||
[all...]
H A Dgelf_symshndx.c45 return (NULL);
47 if (id == NULL || (scn = id->d_scn) == NULL ||
48 (e = scn->s_elf) == NULL || (e != d->d_scn->s_elf) ||
49 shindex == NULL) {
51 return (NULL);
65 return (NULL);
74 return (NULL);
95 if (id == NULL || (scn = id->d_scn) == NULL ||
[all...]
H A Dlibelf_allocate.c45 if ((e = malloc(sizeof(*e))) == NULL) {
47 return NULL;
51 e->e_arhdr = NULL;
58 e->e_parent = NULL;
59 e->e_rawfile = NULL;
71 assert(e != NULL);
127 return (NULL);
135 if ((d = calloc((size_t) 1, sizeof(Elf_Data))) == NULL) {
137 return (NULL);
154 return (NULL);
[all...]
H A Delf_scn.c52 assert(e != NULL);
53 assert(ehdr != NULL);
100 if ((scn = _libelf_allocate_scn(e, i)) == NULL)
129 if (e == NULL || e->e_kind != ELF_K_ELF ||
132 return (NULL);
135 if ((ehdr = _libelf_ehdr(e, ec, 0)) == NULL)
136 return (NULL);
141 return (NULL);
148 return (NULL);
154 if (s == NULL) {
[all...]
H A Dlibelf_ar.c148 if ((r = malloc(sz)) == NULL) {
150 return (NULL);
180 return (NULL);
185 return (NULL);
195 if ((s = malloc(len)) == NULL) {
197 return (NULL);
221 if ((parent = e->e_parent) == NULL) {
223 return (NULL);
232 if ((eh = malloc(sizeof(Elf_Arhdr))) == NULL) {
234 return (NULL);
[all...]
H A Delf_flag.c39 if (d == NULL)
42 if ((c != ELF_C_SET && c != ELF_C_CLR) || (scn = d->d_scn) == NULL ||
43 (e = scn->s_elf) == NULL || e->e_kind != ELF_K_ELF ||
63 if (e == NULL)
78 if (ehdr == NULL) {
91 if (e == NULL)
114 if (e == NULL)
129 if (phdr == NULL) {
142 if (s == NULL)
H A Dgelf_ehdr.c55 if (d == NULL || e == NULL ||
58 return (NULL);
62 if ((eh32 = _libelf_ehdr(e, ELFCLASS32, 0)) == NULL)
63 return (NULL);
85 if ((eh64 = _libelf_ehdr(e, ELFCLASS64, 0)) == NULL)
86 return (NULL);
107 if (e != NULL &&
112 return (NULL);
123 if (s== NULL ||
[all...]
/gem5/src/cpu/
H A Dinteltrace.hh50 const StaticInstPtr _macroStaticInst = NULL)
69 const StaticInstPtr macroStaticInst = NULL)
72 return NULL;
48 IntelTraceRecord(Tick _when, ThreadContext *_thread, const StaticInstPtr _staticInst, TheISA::PCState _pc, const StaticInstPtr _macroStaticInst = NULL) argument
67 getInstRecord(Tick when, ThreadContext *tc, const StaticInstPtr staticInst, TheISA::PCState pc, const StaticInstPtr macroStaticInst = NULL) argument
/gem5/tests/test-progs/mwait/
H A Dmwait.c46 pthread_create(&threads[0], NULL, DoWork1, NULL);
50 pthread_create(&threads[0], NULL, DoWork2, NULL);
/gem5/src/cpu/testers/traffic_gen/
H A Dexit_gen.cc59 return NULL;
/gem5/src/sim/
H A DSubSystem.py57 thermal_domain = Param.ThermalDomain(NULL, "Thermal domain")
H A Dsimulate.cc116 GlobalSyncEvent *quantum_event = NULL;
133 assert(local_event != NULL);
139 assert(global_event != NULL);
143 assert(global_exit_event != NULL);
146 if (quantum_event != NULL) {
215 return NULL;
220 if (exit_event != NULL) {
/gem5/util/m5/
H A Dm5_mmap.c52 void *m5_mem = NULL;
66 m5_mem = mmap(NULL, 0x10000, PROT_READ | PROT_WRITE, MAP_SHARED, fd,
/gem5/src/systemc/tests/systemc/bugs/instantiation_detection/
H A Dinstantiation_detection.cpp50 return 0; // error detected, return NULL
66 sc_assert( create<sub_module>("sub_module") == NULL );
67 sc_assert( create<sc_in<bool> >("port") == NULL );
68 sc_assert( create<sc_export<sc_signal_in_if<bool> > >("export") == NULL );
69 sc_assert( create<sc_signal<bool> >("signal") == NULL );
107 sc_assert( create<sc_in<bool> >("port") == NULL );
108 sc_assert( create<sc_export<sc_signal_in_if<bool> > >("export") == NULL );
/gem5/ext/googletest/googletest/test/
H A Dgtest-linked_ptr_test.cc44 Message* history = NULL;
73 history = NULL;
83 ASSERT_EQ(a0.get(), static_cast<A*>(NULL));
84 ASSERT_EQ(a1.get(), static_cast<A*>(NULL));
85 ASSERT_EQ(a2.get(), static_cast<A*>(NULL));
86 ASSERT_TRUE(a0 == NULL);
87 ASSERT_TRUE(a1 == NULL);
88 ASSERT_TRUE(a2 == NULL);
94 ASSERT_TRUE(a0 != NULL);
107 ASSERT_TRUE(b0 != NULL);
[all...]
/gem5/ext/googletest/googletest/samples/
H A Dsample5_unittest.cc68 start_time_ = time(NULL);
75 const time_t end_time = time(NULL);
180 EXPECT_TRUE(n == NULL);
183 EXPECT_TRUE(n != NULL);
189 EXPECT_TRUE(n != NULL);
/gem5/ext/iostream3/
H A Dzfstream.cc22 : file(NULL), io_mode(std::ios_base::openmode(0)), own_fd(false),
23 buffer(NULL), buffer_size(BIGBUFSIZE), own_buffer(true)
56 return NULL;
59 return NULL;
64 return NULL;
67 if ((file = gzopen(name, char_mode)) == NULL)
68 return NULL;
84 return NULL;
87 return NULL;
92 return NULL;
[all...]

Completed in 21 milliseconds

1234567891011>>