<commit_before>#include <stdint.h>
#include <stdio.h>
#include <tak.h>

struct my_proc;

struct my_list_entry {
	struct my_proc* le_next;
};

struct my_proc {
	intmax_t p_pid;	
	intmax_t p_numthreads;
	struct my_list_entry p_list;
};

struct my_proclist {
	struct my_proc* lh_first;
};

int
main(void)
{
	struct tak t_conn;
	int retval;
	struct my_proclist* proclist;
	struct my_proc* runner;

	retval = tak_open(&t_conn, TAK_TYPE_INFO_CTF, TAK_DATA_SOURCE_KVM);
	if (retval != TAK_OK) {
		fprintf(stderr, "ERROR: %s\n", tak_error_string(retval));
		return EXIT_FAILURE;
	}

	proclist = malloc(sizeof(struct my_proclist));
	printf("proclist = %p\n", proclist);
	proclist->lh_first = (struct my_proc*)0x1234;

	retval = tak_map_sym(&t_conn,
	                     "struct my_proclist",
	                     "allproc",
	                     (void**)&proclist);
	if (retval != TAK_OK) {
		fprintf(stderr, "ERROR: %s\n", tak_error_string(retval));
		return EXIT_FAILURE;
	}

	printf("\n------\n");
	printf("proclist.lh_first = %p\n", proclist->lh_first);
	for (runner = proclist->lh_first;
	     runner != NULL;
	     runner = runner->p_list.le_next) {
		printf("%lld %lld\n", runner->p_pid, runner->p_numthreads);
	}

	return EXIT_SUCCESS;
}
<commit_msg>removed debugging commands<commit_after>#include <stdint.h>
#include <stdio.h>
#include <tak.h>

struct my_proc;

struct my_list_entry {
	struct my_proc* le_next;
};

struct my_proc {
	intmax_t p_pid;	
	intmax_t p_numthreads;
	struct my_list_entry p_list;
};

struct my_proclist {
	struct my_proc* lh_first;
};

int
main(void)
{
	struct tak t_conn;
	int retval;
	struct my_proclist* proclist;
	struct my_proc* runner;

	retval = tak_open(&t_conn, TAK_TYPE_INFO_CTF, TAK_DATA_SOURCE_KVM);
	if (retval != TAK_OK) {
		fprintf(stderr, "ERROR: %s\n", tak_error_string(retval));
		return EXIT_FAILURE;
	}

	proclist = malloc(sizeof(struct my_proclist));
	retval = tak_map_sym(&t_conn,
	                     "struct my_proclist",
	                     "allproc",
	                     (void**)&proclist);
	if (retval != TAK_OK) {
		fprintf(stderr, "ERROR: %s\n", tak_error_string(retval));
		return EXIT_FAILURE;
	}

	printf("\n------\n");
	printf("proclist.lh_first = %p\n", proclist->lh_first);
	for (runner = proclist->lh_first;
	     runner != NULL;
	     runner = runner->p_list.le_next) {
		printf("%lld %lld\n", runner->p_pid, runner->p_numthreads);
	}

	return EXIT_SUCCESS;
}

{'fraction_non_alphanumeric': 0.1424454508027995, 'fraction_numerical': 0.0020584602717167557, 'mean_word_length': 3.673076923076923, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 20, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6734466', 'n_tokens_mistral': 1010, 'n_tokens_neox': 977, 'n_words': 184}