/*
* drivers/misc/tegra-profiler/mmap.c
*
- * Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved.
+ * Copyright (c) 2015, NVIDIA CORPORATION. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
if (!(vma->vm_flags & VM_EXEC))
return;
- tmp_buf = kzalloc(PATH_MAX + sizeof(u64), GFP_KERNEL);
+ tmp_buf = kzalloc(PATH_MAX + sizeof(u64), GFP_ATOMIC);
if (!tmp_buf)
return;
if (IS_ERR(file_name))
goto out;
- if (strstr(file_name, " (deleted)"))
- goto out;
-
length = strlen(file_name) + 1;
-
is_file_exists = 1;
} else {
const char *name = NULL;
pr_info("Get mapped memory objects\n");
- tmp_buf = kzalloc(PATH_MAX + sizeof(u64), GFP_KERNEL);
+ tmp_buf = kzalloc(PATH_MAX + sizeof(u64), GFP_ATOMIC);
if (!tmp_buf)
return -ENOMEM;
if (IS_ERR(file_name))
continue;
- if (strstr(file_name, " (deleted)"))
- continue;
-
length = strlen(file_name) + 1;
is_file_exists = 1;
} else {