Lines Matching refs:o

114 static void init_location(Location *l, LocationType type, JournalFile *f, Object *o) {  in init_location()  argument
121 .seqnum = le64toh(o->entry.seqnum), in init_location()
123 .realtime = le64toh(o->entry.realtime), in init_location()
124 .monotonic = le64toh(o->entry.monotonic), in init_location()
125 .boot_id = o->entry.boot_id, in init_location()
126 .xor_hash = le64toh(o->entry.xor_hash), in init_location()
134 static void set_location(sd_journal *j, JournalFile *f, Object *o) { in set_location() argument
137 assert(o); in set_location()
139 init_location(&j->current_location, LOCATION_DISCRETE, f, o); in set_location()
823 Object *o; in real_journal_next() local
864 r = journal_file_move_to_object(new_file, OBJECT_ENTRY, new_file->current_offset, &o); in real_journal_next()
868 set_location(j, new_file, o); in real_journal_next()
924 Object *o; in sd_journal_get_cursor() local
934 … = journal_file_move_to_object(j->current_file, OBJECT_ENTRY, j->current_file->current_offset, &o); in sd_journal_get_cursor()
940 … SD_ID128_TO_STRING(j->current_file->header->seqnum_id), le64toh(o->entry.seqnum), in sd_journal_get_cursor()
941 SD_ID128_TO_STRING(o->entry.boot_id), le64toh(o->entry.monotonic), in sd_journal_get_cursor()
942 le64toh(o->entry.realtime), in sd_journal_get_cursor()
943 le64toh(o->entry.xor_hash)) < 0) in sd_journal_get_cursor()
1052 Object *o; in sd_journal_test_cursor() local
1061 … = journal_file_move_to_object(j->current_file, OBJECT_ENTRY, j->current_file->current_offset, &o); in sd_journal_test_cursor()
1094 if (ll != le64toh(o->entry.seqnum)) in sd_journal_test_cursor()
1102 if (!sd_id128_equal(id, o->entry.boot_id)) in sd_journal_test_cursor()
1109 if (ll != le64toh(o->entry.monotonic)) in sd_journal_test_cursor()
1116 if (ll != le64toh(o->entry.realtime)) in sd_journal_test_cursor()
1123 if (ll != le64toh(o->entry.xor_hash)) in sd_journal_test_cursor()
2178 Object *o; in sd_journal_get_realtime_usec() local
2193 r = journal_file_move_to_object(f, OBJECT_ENTRY, f->current_offset, &o); in sd_journal_get_realtime_usec()
2197 *ret = le64toh(o->entry.realtime); in sd_journal_get_realtime_usec()
2202 Object *o; in sd_journal_get_monotonic_usec() local
2216 r = journal_file_move_to_object(f, OBJECT_ENTRY, f->current_offset, &o); in sd_journal_get_monotonic_usec()
2221 *ret_boot_id = o->entry.boot_id; in sd_journal_get_monotonic_usec()
2229 if (!sd_id128_equal(id, o->entry.boot_id)) in sd_journal_get_monotonic_usec()
2234 *ret = le64toh(o->entry.monotonic); in sd_journal_get_monotonic_usec()
2272 Object *o; in sd_journal_get_data() local
2288 r = journal_file_move_to_object(f, OBJECT_ENTRY, f->current_offset, &o); in sd_journal_get_data()
2294 n = journal_file_entry_n_items(o); in sd_journal_get_data()
2301 p = le64toh(o->entry.items[i].object_offset); in sd_journal_get_data()
2367 Object *o, in return_data() argument
2378 l = le64toh(READ_NOW(o->object.size)); in return_data()
2388 c = COMPRESSION_FROM_OBJECT(o); in return_data()
2398 o->data.payload, l, in return_data()
2413 *ret_data = o->data.payload; in return_data()
2423 Object *o; in sd_journal_enumerate_data() local
2438 r = journal_file_move_to_object(f, OBJECT_ENTRY, f->current_offset, &o); in sd_journal_enumerate_data()
2442 for (uint64_t n = journal_file_entry_n_items(o); j->current_field < n; j->current_field++) { in sd_journal_enumerate_data()
2445 p = le64toh(o->entry.items[j->current_field].object_offset); in sd_journal_enumerate_data()
2446 r = journal_file_move_to_object(f, OBJECT_DATA, p, &o); in sd_journal_enumerate_data()
2454 r = return_data(j, f, o, data, size); in sd_journal_enumerate_data()
2931 Object *o; in sd_journal_enumerate_unique() local
2939 … r = journal_file_find_field_object(j->unique_file, j->unique_field, k, &o, NULL); in sd_journal_enumerate_unique()
2943 j->unique_offset = r > 0 ? le64toh(o->field.head_data_offset) : 0; in sd_journal_enumerate_unique()
2945 … r = journal_file_move_to_object(j->unique_file, OBJECT_DATA, j->unique_offset, &o); in sd_journal_enumerate_unique()
2949 j->unique_offset = le64toh(o->data.next_field_offset); in sd_journal_enumerate_unique()
2964 … r = journal_file_move_to_object(j->unique_file, OBJECT_UNUSED, j->unique_offset, &o); in sd_journal_enumerate_unique()
2969 if (o->object.type != OBJECT_DATA) in sd_journal_enumerate_unique()
2974 o->object.type, OBJECT_DATA); in sd_journal_enumerate_unique()
2976 r = return_data(j, j->unique_file, o, &odata, &ol); in sd_journal_enumerate_unique()
3009 … r = journal_file_find_data_object_with_hash(of, odata, ol, le64toh(o->data.hash), NULL, NULL); in sd_journal_enumerate_unique()
3023 r = return_data(j, j->unique_file, o, ret_data, ret_size); in sd_journal_enumerate_unique()
3076 Object *o; in sd_journal_enumerate_fields() local
3123 r = journal_file_move_to_object(f, OBJECT_FIELD, j->fields_offset, &o); in sd_journal_enumerate_fields()
3127 j->fields_offset = le64toh(o->field.next_hash_offset); in sd_journal_enumerate_fields()
3136 r = journal_file_move_to_object(f, OBJECT_UNUSED, j->fields_offset, &o); in sd_journal_enumerate_fields()
3141 if (o->object.type != OBJECT_FIELD) in sd_journal_enumerate_fields()
3145 o->object.type, OBJECT_FIELD); in sd_journal_enumerate_fields()
3147 sz = le64toh(o->object.size) - offsetof(Object, field.payload); in sd_journal_enumerate_fields()
3160 … r = journal_file_find_field_object_with_hash(of, o->field.payload, sz, in sd_journal_enumerate_fields()
3161 … le64toh(o->field.hash), NULL, NULL); in sd_journal_enumerate_fields()
3163 … r = journal_file_find_field_object(of, o->field.payload, sz, NULL, NULL); in sd_journal_enumerate_fields()
3176 if (memchr(o->field.payload, 0, sz)) in sd_journal_enumerate_fields()
3185 memcpy(j->fields_buffer, o->field.payload, sz); in sd_journal_enumerate_fields()