[Pdbg] [PATCH 7/7] pdbg/htm: Enforce powersave=off

Alistair Popple alistair at popple.id.au
Fri Mar 16 13:42:32 AEDT 2018


> +		i = 0;
> +		pdbg_for_each_class_target("core", target)
> +			if (!target_is_disabled(target))
> +				i++;
> +		if (i == 0)
> +			fprintf(stderr, "You haven't selected any HTM Cores\n");
> +		if (i > 1) {
> +			fprintf(stderr, "It doesn't make sense to core trace on"
> +				" multiple cores at once. %d\n", i);

For my own background why not? Does the HW not support it? Or do we just not
support it here because it's "hard"?

> +			fprintf(stderr, "What you probably want is -p 0 -c x\n");
> +		}
> +		if (i != 1)
> +			return 0;
> +	}
> +
>  	optind++;
>  	for (i = 0; i < ARRAY_SIZE(actions); i++) {
>  		if (strcmp(argv[optind], actions[i].name) == 0) {
> 




More information about the Pdbg mailing list