Daniel Widdis

Results 411 comments of Daniel Widdis

Just took some time to catch up the entire thread (that I skimmed earlier) and wanted to highlight a few points: The original request was just for the "number of...

FYI, the GCC Compile farm just made an M1 (4 performance+4 efficiency cores) Linux machine available, so I was able to test out my own API. Here's the output for...

> 4. Provide method for getting CPU core affinity for logical/physical core and performance/efficiency cores combinations. This might be tricky since different operating systems might list the cores in different...

> I'm not aware of any portion of Windows or Linux that exposes that information to the user, although I'm sure there are reliable ways to do this that I'm...

Seems it's hardcoded that way: ```c def cpu_freq(): """Return CPU frequency. On Windows per-cpu frequency is not supported. """ curr, max_ = cext.cpu_freq() min_ = 0.0 return [_common.scpufreq(float(curr), min_, float(max_))]...

The `getauxval()` function indicates it's unique to glibc. Not sure if the corresponding proc file is also compiler-dependent.

> As for `/proc/pid/auxv`, which lets you access the auxv of other processes, it exists since kernel 2.6.0 per `man 5 proc`. Indeed, my concern was Alpine linux and those...

> Specifically, I needed `AT_EXECFN` which AFAIK can not be retrieved by any other way in Linux. Is that not [`/proc/[pid]/exe`](https://man7.org/linux/man-pages/man5/proc.5.html) (which is a symlink you can `stat` for the...

> `AT_EXECFN` gives the string that was passed to the `execve` call that started the currently running executable. Does `/proc/[pid]/cmdline` not include that as the first null-delimited string?

https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflow_run