[Crash-utility] Re: [PATCH v2 3/3] s390x: uncouple physical and virtual memory spaces

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2023/12/05 0:04, Alexander Gordeev wrote:

> +static bool is_read_proc_kcore(void)
> +{
> +	struct stat kcore_stat, fd_stat;
> +	int fd;
> +	int rc;
> +
> +	rc = stat("/proc/kcore", &kcore_stat);
> +	if (rc)
> +		return false;
> +
> +	fd = REMOTE_MEMSRC() ? pc->sockfd : (ACTIVE() ? pc->mfd : pc->dfd);
> +	rc = fstat(fd, &fd_stat);
> +	if (rc)
> +		return false;
> +
> +	return (fd_stat.st_ino == kcore_stat.st_ino) &&
> +	       (fd_stat.st_dev == kcore_stat.st_dev);
> +}
> +
> +static bool s390x_init_vm(void)
> +{
> +	struct vm_info vm_info;
> +
> +	if (is_read_proc_kcore()) {

Just to clarify, does this mean that "pc->flags & PROC_KCORE" cannot be 
used here?

Thanks,
Kazu
--
Crash-utility mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxxxxxx
https://${domain_name}/admin/lists/devel.lists.crash-utility.osci.io/
Contribution Guidelines: https://github.com/crash-utility/crash/wiki




[Index of Archives]     [Fedora Development]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]

 

Powered by Linux